~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
..
af.po 2398 14 years ago Guillaume Seguin Update translations 62.5 KB Diff Download File
ar.po 2398 14 years ago Guillaume Seguin Update translations 60.6 KB Diff Download File
as.po 2399 14 years ago Erkin Bahceci Fix charsets in some po files (cherry picked from 50.4 KB Diff Download File
be.po 2398 14 years ago Guillaume Seguin Update translations 52.9 KB Diff Download File
bg.po 2398 14 years ago Guillaume Seguin Update translations 98.8 KB Diff Download File
bn.po 2398 14 years ago Guillaume Seguin Update translations 119 KB Diff Download File
bn_IN.po 2398 14 years ago Guillaume Seguin Update translations 119 KB Diff Download File
bs.po 2398 14 years ago Guillaume Seguin Update translations 64.4 KB Diff Download File
ca.po 2398 14 years ago Guillaume Seguin Update translations 101 KB Diff Download File
CMakeLists.txt 3284.4.1 11 years ago Daniel van Vugt Avoid random build failures "_intltool_update-NOTF 1.5 KB Diff Download File
cs.po 2398 14 years ago Guillaume Seguin Update translations 126 KB Diff Download File
cy.po 2398 14 years ago Guillaume Seguin Update translations 64.9 KB Diff Download File
da.po 2398 14 years ago Guillaume Seguin Update translations 98.4 KB Diff Download File
de.po 2398 14 years ago Guillaume Seguin Update translations 130 KB Diff Download File
el.po 2398 14 years ago Guillaume Seguin Update translations 113 KB Diff Download File
en_GB.po 2398 14 years ago Guillaume Seguin Update translations 73.3 KB Diff Download File
en_US.po 1961.1.1 15 years ago Jigish Gohil new translations and updates 53.8 KB Diff Download File
es.po 2398 14 years ago Guillaume Seguin Update translations 135 KB Diff Download File
et.po 2398 14 years ago Guillaume Seguin Update translations 74.7 KB Diff Download File
eu.po 2398 14 years ago Guillaume Seguin Update translations 84.1 KB Diff Download File
fa.po 2398 14 years ago Guillaume Seguin Update translations 50.9 KB Diff Download File
fi.po 2398 14 years ago Guillaume Seguin Update translations 136 KB Diff Download File
fr.po 2398 14 years ago Guillaume Seguin Update translations 91.8 KB Diff Download File
gl.po 2398 14 years ago Guillaume Seguin Update translations 89.2 KB Diff Download File
gu.po 2398 14 years ago Guillaume Seguin Update translations 114 KB Diff Download File
he.po 2398 14 years ago Guillaume Seguin Update translations 100 KB Diff Download File
hi.po 2398 14 years ago Guillaume Seguin Update translations 113 KB Diff Download File
hr.po 2398 14 years ago Guillaume Seguin Update translations 73.9 KB Diff Download File
hu.po 2398 14 years ago Guillaume Seguin Update translations 88.1 KB Diff Download File
id.po 2398 14 years ago Guillaume Seguin Update translations 62.7 KB Diff Download File
it.po 2398 14 years ago Guillaume Seguin Update translations 95.7 KB Diff Download File
ja.po 2398 14 years ago Guillaume Seguin Update translations 91.2 KB Diff Download File
ka.po 2398 14 years ago Guillaume Seguin Update translations 60.1 KB Diff Download File
km.po 2398 14 years ago Guillaume Seguin Update translations 86.8 KB Diff Download File
ko.po 2398 14 years ago Guillaume Seguin Update translations 85.4 KB Diff Download File
lo.po 2398 14 years ago Guillaume Seguin Update translations 60 KB Diff Download File
lt.po 2398 14 years ago Guillaume Seguin Update translations 75.5 KB Diff Download File
mk.po 2398 14 years ago Guillaume Seguin Update translations 60.6 KB Diff Download File
ml_IN.po 2399 14 years ago Erkin Bahceci Fix charsets in some po files (cherry picked from 60.2 KB Diff Download File
mr.po 1961.1.1 15 years ago Jigish Gohil new translations and updates 56.4 KB Diff Download File
nb.po 2398 14 years ago Guillaume Seguin Update translations 84.9 KB Diff Download File
nl.po 2398 14 years ago Guillaume Seguin Update translations 88.8 KB Diff Download File
or.po 2398 14 years ago Guillaume Seguin Update translations 122 KB Diff Download File
pa.po 2398 14 years ago Guillaume Seguin Update translations 111 KB Diff Download File
pl.po 2398 14 years ago Guillaume Seguin Update translations 100 KB Diff Download File
POTFILES.in 3450.1.1 11 years ago Michael Terry move debian/ packaging inline 1 KB Diff Download File
pt.po 2398 14 years ago Guillaume Seguin Update translations 88.3 KB Diff Download File
pt_BR.po 2398 14 years ago Guillaume Seguin Update translations 86.7 KB Diff Download File
ro.po 2398 14 years ago Guillaume Seguin Update translations 89.3 KB Diff Download File
ru.po 2398 14 years ago Guillaume Seguin Update translations 108 KB Diff Download File
sk.po 2398 14 years ago Guillaume Seguin Update translations 86.9 KB Diff Download File
sl.po 2398 14 years ago Guillaume Seguin Update translations 76.7 KB Diff Download File
sr.po 2398 14 years ago Guillaume Seguin Update translations 82 KB Diff Download File
sv.po 2398 14 years ago Guillaume Seguin Update translations 84.7 KB Diff Download File
ta.po 2398 14 years ago Guillaume Seguin Update translations 61.1 KB Diff Download File
tr.po 2398 14 years ago Guillaume Seguin Update translations 94.5 KB Diff Download File
uk.po 2399 14 years ago Erkin Bahceci Fix charsets in some po files (cherry picked from 110 KB Diff Download File
vi.po 2398 14 years ago Guillaume Seguin Update translations 60.1 KB Diff Download File
xh.po 2398 14 years ago Guillaume Seguin Update translations 62.7 KB Diff Download File
zh_CN.po 2398 14 years ago Guillaume Seguin Update translations 118 KB Diff Download File
zh_TW.po 2398 14 years ago Guillaume Seguin Update translations 121 KB Diff Download File
zu.po 2398 14 years ago Guillaume Seguin Update translations 62.9 KB Diff Download File