Revision 8cfb488...

Go back to digest for 7th October 2012

Optimization in KDE Base

Martin Gräßlin committed changes in [kde-workspace] /:

Introduce a build option KWIN_BUILD_OPENGL_1_COMPOSITING

If the build option is enabled KWIN_HAVE_OPENGL_1 is passed as a compile
flag when build against OpenGL.

This compile flag is meant to replace the KWIN_HAVE_OPENGLES. So far code
has been ifdefed for special behavior of OpenGL ES 2.0 and to remove
fixed functionality calls which are not available in OpenGL ES 2.0.

With this build flag the fixed functionality calls which are only used in
the OpenGL1 Compositor can be removed and keeping the KWIN_HAVE_OPENGLES
for the real differences between OpenGL 2.x and OpenGL ES 2.0.

E.g. a call like glColor4f should be in an
glColor4f(1.0, 1.0, 1.0, 1.0);

while a call like glPolygonMode should be in an
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);

Building for OpenGL ES 2.0 of course implies that KWIN_HAVE_OPENGL_1 is
not defined.

File Changes

Modified 16 files
  •   kwin/CMakeLists.txt
  •   kwin/lanczosfilter.cpp
  •   kwin/scene_opengl.cpp
  •   kwin/scene_opengl.h
  •   kwin/effects/CMakeLists.txt
  •   kwin/libkwineffects/CMakeLists.txt
  •   kwin/libkwineffects/kwingltexture.cpp
  •   kwin/libkwineffects/kwinglutils.cpp
  •   kwin/libkwineffects/kwinglutils.h
  •   kwin/effects/blur/blur.cpp
  •   kwin/effects/blur/blurshader.cpp
  •   kwin/effects/coverswitch/coverswitch.cpp
  •   kwin/effects/cube/cube.cpp
  •   kwin/effects/flipswitch/flipswitch.cpp
  •   kwin/effects/logout/logout.cpp
  •   kwin/effects/startupfeedback/startupfeedback.cpp
16 files changed in total