mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
gpu: Don't remove gc timeout unless cache is empty
If the cache isn't empty, we want to rerun the GC.
This commit is contained in:
parent
71161b6352
commit
148d7bcc25
@ -63,11 +63,13 @@ cache_gc_cb (gpointer data)
|
||||
|
||||
GSK_DEBUG (GLYPH_CACHE, "Periodic GC");
|
||||
|
||||
gsk_gpu_device_gc (self, g_get_monotonic_time ());
|
||||
|
||||
if (gsk_gpu_device_gc (self, g_get_monotonic_time ()))
|
||||
{
|
||||
priv->cache_gc_source = 0;
|
||||
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
return G_SOURCE_CONTINUE;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user