Revert "[On-device adaptive brightness] Create a BrightnessMonitor."
This reverts commit 310c1d6c. Reason for revert: This seems to cause a build failure on linux-chromeos-dbg. The failure logs are below. https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/linux-chromeos-dbg/7896 https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket.appspot.com/8934907190108326448/+/steps/compile/0/logs/raw_io.output_failure_summary_/0 Original change's description: > [On-device adaptive brightness] Create a BrightnessMonitor. > > BrightnessMonitor receives brightness change signals from powerd and > sends out notifications if the change is requested by user. We use > this class instead of powerd directly because we need final/stablized > user brightness instead of intermediate values (that are individually > emitted by powerd). In order to wait for brightness to stablize, we > use a timer that starts when a user brightness is detected and times > out after a period of time if there's no more user brightness detected, > or if the next brightness change is not triggered by the user. > > BrightnessMonitor also notifies its observers as soon as a user > brightness is detected so that an observer can decide what to do (e.g > disable auto-adjustment). > > Bug: 881215 > Change-Id: I2d9aefd8ff48eab37de9527d12657fd4dfeba793 > Reviewed-on: https://chromium-review.googlesource.com/1226715 > Reviewed-by: Dan Erat <derat@chromium.org> > Reviewed-by: Michael Martis <martis@chromium.org> > Commit-Queue: Jia Meng <jiameng@chromium.org> > Cr-Commit-Position: refs/heads/master@{#592605} TBR=derat@chromium.org,jiameng@chromium.org,martis@chromium.org Change-Id: I5e88966455c8bfab9e089580a0ba622c1a2c6026 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 881215 Reviewed-on: https://chromium-review.googlesource.com/1235260Reviewed-by:Taiju Tsuiki <tzik@chromium.org> Commit-Queue: Taiju Tsuiki <tzik@chromium.org> Cr-Commit-Position: refs/heads/master@{#592687}
Showing
This diff is collapsed.
Please register or sign in to comment