summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorchaviw <chaviw@google.com>2018-02-09 14:36:10 -0800
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-02-12 22:36:46 +0000
commit6f007dfc46cf486e61efd924e93ed7344eb4e0c7 (patch)
treeb91b7cfee0218c01be296214a3883b2bc87df83a /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent15cf65cd5f9e29c4e8cbd53309aabd85d8c45f6a (diff)
Prevent setting negative alpha for dim animations.
When apply in the dim animation is called, the currentPlayTime value can be greater than the total duration. If that's the case, the alpha value would be set to a negative value. Instead, if the currentPlayTime is greater than duration, just set the final alpha value. Change-Id: I77b7c512cc8832c2a31e20d49c14550da2cff7cd Fixes: 73152600 Test: No more flashing dim (cherry picked from commit 4d133725d4b263018555cbba99bb3a2524508707)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions