Revision 4824527...
Go back to digest for 12th May 2013Features in KDE Base
New class to encapsulate a Window's Pixmap
The behavior for creating a pixmap for a window is moved from Toplevel
into a dedicated class WindowPixmap. Scene::Window holds a reference to
this class and creates a new WindowPixmap whenever the pixmap needs to be
discarded. In addition it also keeps the old WindowPixmap around for the
case that creating the new pixmap fails. The compositor can in that case
use the previous pixmap which reduces possible flickering. Also this
referencing can be used to improve transition effects like the maximize
windows effect which would benefit from starting with the old pixmap.
For XRender and OpenGL a dedicated sub-class of the WindowPixmap is
created which provides the additional mapping to an XRender picture and
OpenGL texture respectively.
FIXED-IN: 4.11
REVIEW: 110577
File Changes
- kwin/composite.cpp
- kwin/scene.cpp
- kwin/scene.h
- kwin/scene_opengl.cpp
- kwin/scene_opengl.h
- kwin/scene_xrender.cpp
- kwin/scene_xrender.h
- kwin/toplevel.cpp
- kwin/toplevel.h