gnome-shell/src/st
Neil Roberts d66e7dd49e st-theme-node-drawing: Don't create lots of one-shot materials
A few places in st-theme-node-drawing create one-shot material, paint
with it and then free it. This is suboptimal with current Cogl because
it will end up compiling an ARBfp program just for that single paint
and then it will throw it away when the material is destroyed.

There is a new function in st-private.c called
_st_create_texture_material. This creates a simple material for a
texture based on a common parent material that points to a dummy
texture. Any materials created with this function are likely to be
able to share the same program unless the material is further modified
to contain a different number of layers. It would be possible to use
cogl_set_source_texture for this instead except that it's not possible
to modify the material's color in that case so we couldn't render the
texture with opacity.

The corner textures are now stored as a handle to a material that
references the texture rather than storing the texure directly. There
is also a separate border_material member which always points to
border_texture as the only layer.

https://bugzilla.gnome.org/show_bug.cgi?id=633340
2010-10-28 20:02:41 +01:00
..
st-adjustment.c Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-adjustment.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-bin.c [St] Make allocation handling more consistent 2010-02-16 14:06:39 -05:00
st-bin.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-border-image.c introspection: Fix annotations 2010-09-15 03:02:26 +02:00
st-border-image.h Notice style transitions that don't change how StThemeNode paints 2010-08-30 13:40:12 -04:00
st-box-layout-child.c Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-box-layout-child.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-box-layout.c StThemeNode: simplify use of get_color/get_double/get_length 2010-10-21 15:02:33 -04:00
st-box-layout.h Move shared container methods from st-private to a common base class 2010-05-10 19:00:07 +02:00
st-button.c StThemeNode: simplify use of get_color/get_double/get_length 2010-10-21 15:02:33 -04:00
st-button.h Remove st_widget accessors for background and border actors 2010-03-08 16:28:34 -05:00
st-clickable.c [St] Remove _st_actor_contains() 2010-08-10 15:03:13 +02:00
st-clickable.h Import ShellButtonBox as StClickable 2009-11-23 14:33:48 -05:00
st-clipboard.c introspection: Build with --warn-all --warn-error 2010-09-07 13:07:52 -04:00
st-clipboard.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-container.c introspection: Build with --warn-all --warn-error 2010-09-07 13:07:52 -04:00
st-container.h Move shared container methods from st-private to a common base class 2010-05-10 19:00:07 +02:00
st-drawing-area.c st-drawing-area: Avoid unnecessary repaints 2010-10-15 12:31:34 +02:00
st-drawing-area.h Rework StDrawingArea not to use ClutterCairoTexture 2010-03-11 15:08:48 -05:00
st-entry.c StThemeNode: simplify use of get_color/get_double/get_length 2010-10-21 15:02:33 -04:00
st-entry.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-enum-types.c.in Import Mx core as ST 2009-10-01 14:41:16 -04:00
st-enum-types.h.in Import Mx core as ST 2009-10-01 14:41:16 -04:00
st-group.c [StGroup] Respect CSS sizing in size requests 2010-05-25 23:03:14 +02:00
st-group.h Add StGroup container 2010-05-10 19:59:28 +02:00
st-im-text.c Fix build with recent gtk3 2010-09-09 18:34:09 +04:00
st-im-text.h Use GtkIMContext instead of ClutterIMContext 2009-10-06 14:48:32 -04:00
st-label.c [StLabel] Implement text-shadow property 2010-09-02 21:49:59 +02:00
st-label.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-marshal.list Import Mx core as ST 2009-10-01 14:41:16 -04:00
st-overflow-box.c StThemeNode: simplify use of get_color/get_double/get_length 2010-10-21 15:02:33 -04:00
st-overflow-box.h Move shared container methods from st-private to a common base class 2010-05-10 19:00:07 +02:00
st-private.c st-theme-node-drawing: Don't create lots of one-shot materials 2010-10-28 20:02:41 +01:00
st-private.h st-theme-node-drawing: Don't create lots of one-shot materials 2010-10-28 20:02:41 +01:00
st-scroll-bar.c StThemeNode: simplify use of get_color/get_double/get_length 2010-10-21 15:02:33 -04:00
st-scroll-bar.h change parent class of StScrollBar from StBin to StWidget 2010-09-10 05:56:07 +04:00
st-scroll-view.c remove scrollbar-[width/height] 2010-09-10 05:57:36 +04:00
st-scroll-view.h Add top and bottom shadows to app browser 2010-02-23 01:12:13 +03:00
st-scrollable.c Simplify handling of adjustments 2010-03-11 15:08:48 -05:00
st-scrollable.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-shadow.c [StShadow] Add reference counting 2010-09-02 21:49:59 +02:00
st-shadow.h [StShadow] Add reference counting 2010-09-02 21:49:59 +02:00
st-subtexture.c Support and require Clutter 1.2 2010-03-11 15:08:48 -05:00
st-subtexture.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-table-child.c St: minor gtk-doc fixage (%NULL, %TRUE, %FALSE, not #) 2010-03-23 19:56:10 -04:00
st-table-child.h [StTable] fix x-align/y-align properties to be StAlign, not double 2010-02-16 14:06:39 -05:00
st-table-private.h Add emacs modelines to all .c and .h files that were missing them 2009-10-27 11:27:45 -04:00
st-table.c StThemeNode: simplify use of get_color/get_double/get_length 2010-10-21 15:02:33 -04:00
st-table.h Move shared container methods from st-private to a common base class 2010-05-10 19:00:07 +02:00
st-texture-cache.c Add symbolic icons to TextureCache's load_icon_name() 2010-09-24 10:57:27 -04:00
st-texture-cache.h Add symbolic icons to TextureCache's load_icon_name() 2010-09-24 10:57:27 -04:00
st-theme-context.c Pick up system settings for font rendering 2010-05-04 01:08:20 +02:00
st-theme-context.h Pick up system settings for font rendering 2010-05-04 01:08:20 +02:00
st-theme-node-drawing.c st-theme-node-drawing: Don't create lots of one-shot materials 2010-10-28 20:02:41 +01:00
st-theme-node-private.h st-theme-node-drawing: Don't create lots of one-shot materials 2010-10-28 20:02:41 +01:00
st-theme-node-transition.c Revert "StThemeNodeTransition: work around Cogl bug" 2010-09-24 17:31:41 +02:00
st-theme-node-transition.h [St] Add StThemeNodeTransition 2010-06-08 17:55:50 +02:00
st-theme-node.c StThemeNode: simplify use of get_color/get_double/get_length 2010-10-21 15:02:33 -04:00
st-theme-node.h StThemeNode: simplify use of get_color/get_double/get_length 2010-10-21 15:02:33 -04:00
st-theme-private.h Work around libcroco < 0.6.2 parsing bug for 'rgba' 2009-10-05 16:25:38 -04:00
st-theme.c st-theme: ref items in custom stylesheets list 2010-10-18 15:52:38 -04:00
st-theme.h Add functions to dynamically load/unload stylesheets 2009-12-01 15:00:56 -05:00
st-tooltip.c Move Tweener.slowDownFactor into St 2010-06-21 16:19:25 +02:00
st-tooltip.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-types.h [StScrollView] Add support for GtkPolicyType for scrollbars 2010-02-19 15:37:40 -05:00
st-widget.c Avoid warnings on leave-event for widgets tracking hover 2010-10-25 15:18:07 +02:00
st-widget.h Move Tweener.slowDownFactor into St 2010-06-21 16:19:25 +02:00
test-theme.c [StWidget] add list-like methods for style_class and pseudo_class 2010-03-24 09:40:37 -04:00
test-theme.css [StWidget] add list-like methods for style_class and pseudo_class 2010-03-24 09:40:37 -04:00