[gnome-shell] st-theme-node: Don't update resources on each paint



commit f9b32474b090bf4aa5baa615fa593a7464a94955
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Jul 10 02:06:05 2013 +0200

    st-theme-node: Don't update resources on each paint
    
    Up to commit 318283fc705bd9e9, resources were only updated when
    the allocated size had changed. There is no good reason to change
    this for theme nodes without box shadows.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=703909

 src/st/st-theme-node-drawing.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/st/st-theme-node-drawing.c b/src/st/st-theme-node-drawing.c
index 4388029..1a2cea3 100644
--- a/src/st/st-theme-node-drawing.c
+++ b/src/st/st-theme-node-drawing.c
@@ -2397,7 +2397,7 @@ st_theme_node_paint (StThemeNode           *node,
 
       node->rendered_once = TRUE;
     }
-  else
+  else if (state->alloc_width != width || state->alloc_height != height)
     st_theme_node_update_resources (state, node, width, height);
 
   /* Rough notes about the relationship of borders and backgrounds in CSS3;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]