Go to file
Lionel Landwerlin 318283fc70 st: optimize box-shadow rendering
Currently the box-shadow is rendering is done like this :

The first time we want to render a node that requires a box-shadow, St
creates an cogl offscreen surface of the size of the allocation and
renders the box into this offscreen buffer using modulation on the
alpha channel, this buffer is then blurred according to the CSS
parameters.

The problem with this method is that every time an StWidget is
resized, its box-shadow offscreen buffer has to be resized and
therefore rendered and blurred.

This patches propose an optimization for this use case by rendering
the box-shadow only once but at a size that is independent of the
StWidget's size. Then every time we need to paint this box-shadow, we
just render this offscreen buffer using a 9-slices.

This method only works when the allocation of the widget is bigger
than the minimum shadow size on which we can apply a 9-slices, that is
given my the radius of the corners. If the allocation is smaller than
this minimum size, we then fallback to the fully render/blur the
shadow (like before this patch).

https://bugzilla.gnome.org/show_bug.cgi?id=689858
2013-07-09 11:24:26 +01:00
.settings Convert all JS style to be uniform, add Eclipse settings bits 2008-11-28 20:12:20 +00:00
browser-plugin Remove use of deprecated g_type_init () ... 2012-10-17 22:49:32 +02:00
data loginDialog: Move the session list to a PopupMenu 2013-06-26 14:42:31 -04:00
docs docs: Include ShellKeyBindingMode in docs 2013-05-23 17:07:50 +02:00
js layout: Don't use the input mode to block events to windows 2013-07-08 17:05:17 -04:00
man Document --clutter-display in the man page 2013-05-16 18:43:52 -04:00
po Updated Vietnamese translation 2013-07-06 18:29:12 +07:00
src st: optimize box-shadow rendering 2013-07-09 11:24:26 +01:00
tests st-scroll-view: Add :overlay-scrollbars property 2013-02-22 10:57:50 +01:00
tools jhbuildrc-gnome-shell: switch to the GNOME 3.8 moduleset 2012-10-05 13:59:57 -04:00
.gitignore remote-search: properly document the DBus interface 2012-12-06 12:13:24 -05:00
.gitmodules Use libgnome-volume-control from a submodule 2012-12-08 15:53:46 +01:00
.project Convert all JS style to be uniform, add Eclipse settings bits 2008-11-28 20:12:20 +00:00
AUTHORS Initial commit 2008-10-31 04:22:44 +00:00
autogen.sh Use libgnome-volume-control from a submodule 2012-12-08 15:53:46 +01:00
configure.ac Bump version to 3.9.3 2013-06-18 17:47:30 +02:00
COPYING Initial commit 2008-10-31 04:22:44 +00:00
gnome-shell.doap Revert "doap: add myself to doap file" 2013-03-15 14:02:31 -04:00
HACKING Add a new code style/hacking guide 2012-10-10 19:11:36 -03:00
MAINTAINERS MAINTAINERS: Fix my email address 2011-05-23 09:15:58 -04:00
Makefile.am build: Exclude .gitmodules from distribution 2012-12-18 18:28:42 +01:00
NEWS Bump version to 3.9.3 2013-06-18 17:47:30 +02:00
README Add README and DOAP file 2009-09-04 15:23:13 -04:00

GNOME Shell provides core user interface functions for the GNOME 3 desktop,
like switching to windows and launching applications. GNOME Shell takes
advantage of the capabilities of modern graphics hardware and introduces
innovative user interface concepts to provide a visually attractive and
easy to use experience.

For more information about GNOME Shell, including instructions on how
to build GNOME Shell from source and how to get involved with the project,
see:

 http://live.gnome.org/GnomeShell

Bugs should be reported at http://bugzilla.gnome.org against the 'gnome-shell'
product.

License
=======
GNOME Shell is distributed under the terms of the GNU General Public License,
version 2 or later. See the COPYING file for details.