st-theme-node: Move some allocation-independent textures back to the theme node
The background image, background image shadow and border image are allocation-indepedent, so we can keep these in the node. Given that these are are likely cached in the StTextureCache, the slight increase in code complexity may not be worth caching these textures and materials -- we might be better off just computing when we need to paint. https://bugzilla.gnome.org/show_bug.cgi?id=697274
This commit is contained in:
@@ -99,6 +99,12 @@ struct _StThemeNode {
|
||||
guint background_image_shadow_computed : 1;
|
||||
guint text_shadow_computed : 1;
|
||||
guint link_type : 2;
|
||||
|
||||
CoglHandle border_slices_texture;
|
||||
CoglHandle border_slices_material;
|
||||
CoglHandle background_texture;
|
||||
CoglHandle background_material;
|
||||
CoglHandle background_shadow_material;
|
||||
};
|
||||
|
||||
struct _StThemeNodeClass {
|
||||
|
Reference in New Issue
Block a user