diff options
author | Daniel Solomon <solomondaniel@google.com> | 2021-09-24 17:44:00 -0700 |
---|---|---|
committer | Daniel Solomon <solomondaniel@google.com> | 2021-10-03 16:59:21 -0700 |
commit | 13d3dffa6655c1610d3485227037867439f0403c (patch) | |
tree | e3247cb4ea9e9ca18df9073bac790789d3023d4d /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | a49b90befed61e22f382ce320df13cb6cc3031ed (diff) |
Make DisplayModeDirector aware of whether HBM is active
Currently DisplayModeDirector casts Vote.PRIORITY_HIGH_BRIGHTNESS_MODE
based on whether High Brightness Mode (HBM) is allowed, rather than
based on whether HBM is actually active. This can lead to cases where
the HBM refresh rate vote is cast when HBM is allowed but not actually
used.
This change corrects this behavior, and makes DisplayModeDirector check
that HBM is both allowed (enabled) and actually in use (active).
Bug: 200851199
Test: atest DisplayModeDirectorTest
BrightnessLevelPreferenceControllerTest
HighBrightnessModeControllerTest
Change-Id: I8cb8f023a6bca11de976866259032143f43d9a4f
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions