summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-02-24 14:59:21 -0800
committerGlenn Kasten <gkasten@google.com>2012-03-12 08:58:26 -0700
commit0fe52c8be843b42b2148ec46b27221b0d227e2a4 (patch)
treed14ac3dbb6765f34517b0420abde5d8a49d93866 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parentc4ffe77a710880416a7cf7c20277311bab2d7abc (diff)
Merge dup code at thread entry and param change
This CL is mostly just cleanup, but there are a couple of fixes marked "FIX" below. Merge the duplicate code that was at the beginning of threadLoop() and after a parameter change. cacheParameters_l() is now called at entry to threadLoop() and after any parameter change. It re-calculates all values that are derived from parameters, and caches them in instance variables. updateWaitTime_l(): - FIX activeSleepTime depends on mWaitTimeMs, which was initially set to infinity. updateWaitTime_l() was not called at entry to threadLoop(), so activeSleepTime was not set correctly before the first parameter change. - FIX reversed the order of calls after parameter change for the same reason so that updateWaitTime_l() is called before calculating values that are derived from wait time. - marked it private since now it's only called from DuplicatingThread Change-Id: If2607d2ed66c6893d910433e48208a93c41fb7e9
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions