diff options
| author | 2023-05-26 14:03:09 +0000 | |
|---|---|---|
| committer | 2023-05-26 14:58:05 +0000 | |
| commit | f336f64a119c2ab538ad6eadca760117a40a127a (patch) | |
| tree | eca1608eea1f21e2faa03c45efea63d1cda0a62a /libs/hwui/HardwareBitmapUploader.cpp | |
| parent | 4b4b8d7b085d669426c0d2f69fc9e20a080e4095 (diff) | |
Ensure invalid brightness values aren't used
Previously, we were adding invalid brightness values to the short term
model; specifically, -1.0 was being added, causing the short term model
to be very dark. This change ensures that we validate the values before
adding them to the curve.
Bug: 283055494
Test: atest com.android.server.display
Test: atest AutomaticBrightnessControllerTest
Change-Id: I4a53f5ea396c353c69b006dfda76e2f7acce7651
Diffstat (limited to 'libs/hwui/HardwareBitmapUploader.cpp')
0 files changed, 0 insertions, 0 deletions