summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/DrawFrameTask.cpp
diff options
context:
space:
mode:
authorSantos Cordon <santoscordon@google.com>2021-07-16 11:49:13 +0100
committerSantos Cordon <santoscordon@google.com>2021-07-22 18:51:57 +0100
commit0db446adb4b2393507a2a6ec0ab9ff001d08e0b0 (patch)
tree1075b84a836c2b0d7e88470913856d0ea3fb956f /libs/hwui/renderthread/DrawFrameTask.cpp
parent0077afd88a42326767982d18812ccb5aa6de64ae (diff)
Fix HDR for app-override brightness.
- HBMController no longer listens to changes on the brightness setting directly, and instead gets brightness updates from DPC. This was necessary since some of the brightness-sources (such as app-override) are not reflected in the actual setting. - Clamp override and temporary brightness sources so that they cannot push brightness beyond the bounds set by HbmController. - Always save away the actual brightness setting in BrightnessInfo cache, ignoring any temporary or override brightness values. This ensures that Display.getBrightnessInfo() reflects the user setting, and not some temporary brightness state. Bug: 193392737 Test: manually test HDR with app-override Test: atest HighBrightnessModeControllerTest Change-Id: Iffe777a22d058ddb779dc6fc22c2382f6bbac1ab
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.cpp')
0 files changed, 0 insertions, 0 deletions