From 212e55d7cf9675d55976dd213995b715adfe91e6 Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Wed, 9 Oct 2019 09:23:50 +0000 Subject: [PATCH] caches: Stop using due to bugginness The button cache is storing only button outlines (not useful to us), and it only cares about active/inactive states (there are more). This will have to be rewritten sanely, so for the time being, disabling it is not going to deal a big performance penalty. --- eek/eek-renderer.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/eek/eek-renderer.c b/eek/eek-renderer.c index 5dceb655..8659bfba 100644 --- a/eek/eek-renderer.c +++ b/eek/eek-renderer.c @@ -193,12 +193,7 @@ static void render_button_in_context(EekRenderer *self, /* render outline */ EekBounds bounds = squeek_button_get_bounds(place->button); - if (active) - outline_surface_cache = priv->active_outline_surface_cache; - else - outline_surface_cache = priv->outline_surface_cache; - - outline_surface = g_hash_table_lookup (outline_surface_cache, place->button); + outline_surface = NULL; if (!outline_surface) { cairo_t *cr; @@ -221,10 +216,6 @@ static void render_button_in_context(EekRenderer *self, cairo_restore (cr); cairo_destroy (cr); - - g_hash_table_insert (outline_surface_cache, - (gpointer)place->button, - outline_surface); } cairo_set_source_surface (cr, outline_surface, 0.0, 0.0); cairo_paint (cr);