summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2023-03-21 06:21:58 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2023-03-21 06:21:58 +0000
commit7fb13c587d7e0d449c6a9cf313b2e239d26ce0d3 (patch)
treec685de8177f4fda8d1e0d01695097cd4e1004b4e
parentf2077a83b6050ca5f68cb4a96c1329baaa03da68 (diff)
parent1e8dc49afce865e100ae4ea0eee3160d1319a300 (diff)
Merge "libhwc2.1: clear brightness dirty flag if go sysfs path" into udc-dev
-rw-r--r--libhwc2.1/libdevice/BrightnessController.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libhwc2.1/libdevice/BrightnessController.cpp b/libhwc2.1/libdevice/BrightnessController.cpp
index b4603c3..5a226e0 100644
--- a/libhwc2.1/libdevice/BrightnessController.cpp
+++ b/libhwc2.1/libdevice/BrightnessController.cpp
@@ -246,7 +246,8 @@ int BrightnessController::processDisplayBrightness(float brightness, const nsecs
} else {
level = brightness < 0 ? 0 : static_cast<uint32_t>(brightness * mMaxBrightness + 0.5f);
}
- // go sysfs path
+ // clear dirty before go sysfs path
+ mBrightnessFloatReq.clear_dirty();
}
// Sysfs path is faster than drm path. If there is an unchecked drm path change, the sysfs