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:
Benjamin Otte 2024-07-03 03:19:57 +02:00
parent 71161b6352
commit 148d7bcc25

View File

@ -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