Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Issue 886103002: Make SetDisplayPower() take a callback to signal completion (Closed)

Created:
5 years, 10 months ago by dnicoara
Modified:
5 years, 10 months ago
Reviewers:
Daniel Erat
CC:
chromium-reviews, hashimoto+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make SetDisplayPower() take a callback to signal completion SetDisplayPower() is called by powerd to turn the panel on. After that powerd will set the backlight level. Since DisplayConfigurator may be executing the SetDisplayPower() operation asynchronously, the panel may still be off when powerd tries to set the backlight level. So powerd's operation would be ignored by the driver. BUG=chrome-os-partner:35662 Committed: https://crrev.com/eebe273b953b5c726473d2af63feb13dd0d5f090 Cr-Commit-Position: refs/heads/master@{#313983}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 8

Patch Set 3 : Fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -41 lines) Patch
M chrome/browser/chromeos/dbus/chrome_display_power_service_provider_delegate.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/dbus/chrome_display_power_service_provider_delegate.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chromeos/dbus/services/display_power_service_provider.h View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M chromeos/dbus/services/display_power_service_provider.cc View 1 2 2 chunks +15 lines, -3 lines 0 comments Download
M ui/display/chromeos/display_configurator.h View 1 2 4 chunks +24 lines, -3 lines 0 comments Download
M ui/display/chromeos/display_configurator.cc View 1 2 8 chunks +43 lines, -5 lines 0 comments Download
M ui/display/chromeos/display_configurator_unittest.cc View 1 2 17 chunks +96 lines, -25 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
dnicoara
PTAL
5 years, 10 months ago (2015-01-30 16:48:50 UTC) #2
Daniel Erat
looks okay to me with some minor comments https://codereview.chromium.org/886103002/diff/20001/chromeos/dbus/services/display_power_service_provider.cc File chromeos/dbus/services/display_power_service_provider.cc (right): https://codereview.chromium.org/886103002/diff/20001/chromeos/dbus/services/display_power_service_provider.cc#newcode15 chromeos/dbus/services/display_power_service_provider.cc:15: void ...
5 years, 10 months ago (2015-01-30 17:14:07 UTC) #3
dnicoara
https://codereview.chromium.org/886103002/diff/20001/chromeos/dbus/services/display_power_service_provider.cc File chromeos/dbus/services/display_power_service_provider.cc (right): https://codereview.chromium.org/886103002/diff/20001/chromeos/dbus/services/display_power_service_provider.cc#newcode15 chromeos/dbus/services/display_power_service_provider.cc:15: void DisplayConfigurationCallback( On 2015/01/30 17:14:07, Daniel Erat wrote: > ...
5 years, 10 months ago (2015-01-30 18:25:28 UTC) #4
Daniel Erat
lgtm
5 years, 10 months ago (2015-01-30 19:34:18 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/886103002/40001
5 years, 10 months ago (2015-01-30 20:32:12 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-01-30 20:40:36 UTC) #8
commit-bot: I haz the power
5 years, 10 months ago (2015-01-30 20:42:00 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/eebe273b953b5c726473d2af63feb13dd0d5f090
Cr-Commit-Position: refs/heads/master@{#313983}

Powered by Google App Engine
This is Rietveld 408576698