summaryrefslogtreecommitdiffstats
path: root/core/tests
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-02-24 11:20:09 -0800
committerGlenn Kasten <gkasten@google.com>2012-02-24 15:55:08 -0800
commite20ab3811a4929540ee496ce4c4d05930a0d92ca (patch)
tree7d647229881657a285a96b069bc94df874ae9b3f /core/tests
parentbe3835c64dc782c1c40ebf75badd1db47aff7b1a (diff)
downloadframeworks_base-e20ab3811a4929540ee496ce4c4d05930a0d92ca.zip
frameworks_base-e20ab3811a4929540ee496ce4c4d05930a0d92ca.tar.gz
frameworks_base-e20ab3811a4929540ee496ce4c4d05930a0d92ca.tar.bz2
Unlock effect chains in the middle of two if's
As part of the upcoming threadLoop() merge, this CL makes it clearer what are the similar and different parts before and after unlocking effect chains. In each threadLoop(), the old code was: if (sleepTime == 0) { // A unlockEffectChains(effectChains); // B } else { unlockEffectChains(effectChains); // C } The new code is: if (sleepTime == 0) { // A } unlockEffectChains(effectChains); if (sleepTime == 0) { // B } else { // C } Also this is slightly slower by one "if", it has the advantage of making it much more obvious about what is done before and after the unlock, and also to see the similarities and differences among the various copies of threadLoop(). Change-Id: I7bf4369d2dcb072573ec43b7e52c637f0097dc00
Diffstat (limited to 'core/tests')
0 files changed, 0 insertions, 0 deletions