Merge lp:~bregma/compiz/lp-1072206-trusty into lp:compiz/0.9.11

Proposed by Stephen M. Webb
Status: Merged
Approved by: Christopher Townsend
Approved revision: 3873
Merged at revision: 3874
Proposed branch: lp:~bregma/compiz/lp-1072206-trusty
Merge into: lp:compiz/0.9.11
Diff against target: 34 lines (+1/-6)
2 files modified
plugins/animation/include/animation/animeffect.h (+0/-2)
plugins/animation/src/animation.cpp (+1/-4)
To merge this branch: bzr merge lp:~bregma/compiz/lp-1072206-trusty
Reviewer Review Type Date Requested Status
Christopher Townsend Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+252571@code.launchpad.net

Commit message

removed texture caching from animations

Description of the change

Do not cache textures in animation.cpp.

Cherry-picked from trunk.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Christopher Townsend (townsend) wrote :

Yep

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'plugins/animation/include/animation/animeffect.h'
--- plugins/animation/include/animation/animeffect.h 2012-09-04 06:54:16 +0000
+++ plugins/animation/include/animation/animeffect.h 2015-03-11 12:30:39 +0000
@@ -100,8 +100,6 @@
100 int mDecorTopHeight;100 int mDecorTopHeight;
101 int mDecorBottomHeight;101 int mDecorBottomHeight;
102 102
103 GLTexture::List *texturesCache;
104
105 CompOption::Value &optVal (unsigned int optionId);103 CompOption::Value &optVal (unsigned int optionId);
106 104
107 inline bool optValB (unsigned int optionId) { return optVal (optionId).b (); }105 inline bool optValB (unsigned int optionId) { return optVal (optionId).b (); }
108106
=== modified file 'plugins/animation/src/animation.cpp'
--- plugins/animation/src/animation.cpp 2013-10-30 20:31:20 +0000
+++ plugins/animation/src/animation.cpp 2015-03-11 12:30:39 +0000
@@ -479,16 +479,13 @@
479 mDecorBottomHeight = w->output ().bottom;479 mDecorBottomHeight = w->output ().bottom;
480 }480 }
481481
482 texturesCache = new GLTexture::List (GLWindow::get (w)->textures ());
483 PrivateAnimScreen *as = mAWindow->priv->paScreen ();482 PrivateAnimScreen *as = mAWindow->priv->paScreen ();
484483
485 mTimestep = as->optionGetTimeStep ();484 mTimestep = as->optionGetTimeStep ();
486}485}
487486
488Animation::~Animation ()487Animation::~Animation ()
489{488{}
490 delete texturesCache;
491}
492489
493CompOption::Value &490CompOption::Value &
494Animation::optVal (unsigned int optionId)491Animation::optVal (unsigned int optionId)

Subscribers

People subscribed via source and target branches