mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +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;
|
||||
}
|
||||
|
||||
priv->cache_gc_source = 0;
|
||||
|
||||
return G_SOURCE_REMOVE;
|
||||
return G_SOURCE_CONTINUE;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user