summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorKevin Chyn <kchyn@google.com>2021-06-01 14:36:09 -0700
committerKevin Chyn <kchyn@google.com>2021-06-02 09:29:35 -0700
commitf6ff170d53e68a5997070fdd90c7d5d6147c8376 (patch)
tree61656fa787bc450199250857fa2b7449c3d80732 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent5e70b5efb7094a78d05ecf7fb8f3bb0fdabc17f0 (diff)
Turn off HBM when AcquiredInfo#GOOD
Prevent unnecessary use of HBM. This change decouples illumination state from touch state. onFingerUp should always be called whenever the finger leaves the HBM area, and not only when illumination was requested (isFingerDown was actually isIlluminationRequested()). Moves the check to onFingerUp to stop illumination only if illumination was actually happening. Bug: 187460696 Test: atest UdfpsControllerTest Change-Id: I2eebe32990761d2fbf86cab228e4a7221a209b42
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions