summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorBookatz <bookatz@google.com>2017-04-06 11:59:13 -0700
committerBookatz <bookatz@google.com>2017-04-07 11:12:54 -0700
commitceebafe41a127c18213ca39ddf692ae1cbfb100e (patch)
tree3f251ef9724d02515e996f7e6341edcbf18fca9d /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent67ee79e84fa14975721ab9500aabf593c05dbcfe (diff)
Fix counting problems in StopwatchTimer.
Changed StopwatchTimer so that its count only increases if the timer is started when its time base is running. Previously, if the time base was off, the timer was started, the time base was turned on, and then the timer was stopped, the count would be increased; now, it will not (because the time base was off when the timer started). Moreover, this likely fixes the count==-1 bug that previously could occur, since the count will no longer be decremented if the timer is stopped after a reset. Fixes: 36730213 Bug: 30099724 Test: runtest -x frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java Change-Id: Iad195e431618629ce432074e0c1bd217f9818cb1
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions