~ps-jenkins/compiz/latestsnapshot-10.9.10+13.10.20131004-0ubuntu1

cube.cpp, code cleanup:

#include "privates.h", not <privates.h>.
Merged if condition checks.
Declaration of variables, where you need them to improve
the code structure and readability.
Use C++ standard bool for topDir, bottomDir, allCaps and
mCapsPainted[output] (bool true/false instead Bool TRUE/FALSE).
Initialize all of the class member variables in the constructor.
Replaced if (priv->mSky.size () > 0) with if (!priv->mSky.empty ()).
Removed redundant brackets.
Fixed indentation.
Added TODO.

cube.cpp, code speedup:

Do not call optionGetInactiveOpacity () twice, instead save
the value as float inactiveOpacity and use this variable in
the following calculation.
Introduced the variables float halfHsize  = hsize / 2.0; and
float tsSize = 360.0f / size; and used those in following
calculations to not have to recalculate those values multiple
times.
Do not calculate M_PI / sides and 2 * M_PI / sides multiple times
in loops, instead save those values in the GLfloats mps and tmps
and use those values inside the loops.
Use GLdouble mDist2 = 0.5 / mDistance; in the GLdouble clipPlane*
arrays, instead of recalculating this value multiple times.
Use GLfloat oneMinusFStepX = 1.0f - fStepX; and
GLfloat oneMinusFStepY = 1.0f - fStepY; instead of calculating
those values multiple times.
Use float outputWidth = outputPtr->width (); and float outputHeight =
outputPtr->height (); instead of calling the functions multiple
times.
Introduced the GLfloat normInvert = 0.5f * invert; and used this
variable instead of recalculating this value multiple times.
Introduced the GLfloats mSkyWidth and mSkyHeight and used those
in the following loops instead of calling mSkySize.width () and
mSkySize.height () multiple times.
Try to avoid redundant GL_BLEND state changes, because OpenGL
will blindly change the global state, no matter what it currently
is set to and that state change is expensive. So we query and
save the actual blending state in the variable GLboolean
glBlendEnabled = glIsEnabled (GL_BLEND); and just enable it if
it isn't already and just disable it, if it was disabled before.

(LP: #1101422, LP: #1195977)

cube.cpp, other fixes:

Return false in function PrivateCubeScreen::updateGeometry (int, int)
if sides should ever be 0, which should never happen, but should make
Coverity happy.

(LP: #1101541)

Initialize all class member variables in the PrivateCubeScreen::
PrivateCubeScreen (CompScreen *) constructor.
(mTc, mNOutput, mOutput, mOutputMask, mCleared, mCapsPainted)

(LP: #1101575). Fixes: https://bugs.launchpad.net/bugs/1101422, https://bugs.launchpad.net/bugs/1101541, https://bugs.launchpad.net/bugs/1101575.

Approved by Sam Spilsbury, PS Jenkins bot.
Filename Latest Rev Last Changed Committer Comment Size
..
plugin_extensions 2664 13 years ago Sam Spilsbury Merge branch 'master' of git://git.compiz.org/comp Diff
src 3270.2.2 11 years ago Sam Spilsbury Added compiz_discover_tests. gtest_add_tests is g Diff
all_plugins_in_folder_example-CMakeLists.txt 2303 15 years ago Dennis kasprzyk Added "all plugins in folder" example CMakeLists.t 257 bytes Diff Download File
base.cmake 3500.2.1 11 years ago Daniel van Vugt Fixed: findcompiz_install doesn't work (LP: #10515 4.1 KB Diff Download File
CMakeLists.txt 3201.2.100 11 years ago Daniel van Vugt Merge latest lp:compiz 1.3 KB Diff Download File
CompizBcop.cmake 3054.1.1 12 years ago Daniel van Vugt Corrected CMake target dependencies so that parall 1.6 KB Diff Download File
CompizCommon.cmake 3733.2.1 10 years ago Sam Spilsbury Disable warnings about unused local typedefs (LP: 39.8 KB Diff Download File
CompizDefaults.cmake 2932.3.2 12 years ago Daniel van Vugt A more elegant fix for LP: #919948. Just install t 637 bytes Diff Download File
CompizDefaults.cmake.in 2777.1.1 12 years ago Sam Spilsbury Merge in lp:~andyrock/compiz-core/fix-1309 328 bytes Diff Download File
CompizGconf.cmake 3217.2.1 12 years ago smspillaz Remove COMPIZ_DESTDIR It was a broken hack for a 1.4 KB Diff Download File
CompizGSettings.cmake 3680.1.1 11 years ago Sam Spilsbury Fix some files not installing: 1. gsettings sche 7.5 KB Diff Download File
CompizPackage.cmake 3540.1.2 11 years ago Daniel van Vugt Sort the plugin list to improve readability of CMa 4.1 KB Diff Download File
CompizPlugin.cmake 3506.1.58 11 years ago Sam Spilsbury Also ensure we don't install any schemas, metadata 15.2 KB Diff Download File
CompizTesting.cmake 3044.2.1 12 years ago Łukasz 'sil2100' Zemczak Added run-with-xvfb.sh from Unity-2d for enabling 697 bytes Diff Download File
copy_file_install_user_env.cmake 3279.4.183 11 years ago Sam Spilsbury Merged compiz.split_gsettings_rw_funcs into compiz 543 bytes Diff Download File
EnableCoverageReport.cmake 3299.1.1 11 years ago Sam Spilsbury Moved ParseArguments to CompizCommon, because appa 7.2 KB Diff Download File
FindCompiz.cmake 3350 11 years ago Tarmac Fixed URL references (now "https://launchpad.net/c 3.6 KB Diff Download File
Findgcovr.cmake 2890.4.4 12 years ago Thomas Voß Switched to Google test. 962 bytes Diff Download File
FindLcov.cmake 2890.4.4 12 years ago Thomas Voß Switched to Google test. 976 bytes Diff Download File
FindOpenGLES2.cmake 3201.2.1 12 years ago Daniel van Vugt Import GLES2 branch: lp:~compiz-linaro-team/compiz 1.3 KB Diff Download File
FindXorgGTest.cmake 3554.6.6 11 years ago Sam Spilsbury Check for the right xorg-gtest version 1.9 KB Diff Download File
GoogleTest.cmake 3753.6.8 10 years ago Sam Spilsbury Remove duplication and fix wrong order for set () 1.9 KB Diff Download File
opt_install_file.cmake 3225.5.1 12 years ago smspillaz Execute the cmake files separately to ensure that 343 bytes Diff Download File
recompile_gsettings_schemas_in_dir_user_env.cmake 3284.1.1 11 years ago Sam Spilsbury Fix CMake error when USER environment variable isn 663 bytes Diff Download File
XorgGTest.cmake 3554.6.1 11 years ago Sam Spilsbury Clean up the Find Google Test and Xorg GTest logic 303 bytes Diff Download File