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

Issue 12391004: chromeos: Add DisplayPowerServiceProvider. (Closed)

Created:
7 years, 9 months ago by Daniel Erat
Modified:
7 years, 9 months ago
Reviewers:
marcheu, sky
CC:
chromium-reviews, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, oshima, sabercrombie1
Visibility:
Public.

Description

chromeos: Add DisplayPowerServiceProvider. This makes Chrome export a SetDisplayPower D-Bus method call for the power manager. It also reworks OutputConfigurator to cache the most-recently-requested power state and use it for future display mode requests. Finally, it works around a related bug where multiple mouse events may be generated when the displays are reconfigured, which would result in a report of user activity that could abort suspending. BUG=chromium-os:39289, 180348, chrome-os-partner:12662 TBR=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186625

Patch Set 1 #

Total comments: 3

Patch Set 2 : merge #

Patch Set 3 : SetDisplayPowerState -> SetDisplayPower #

Patch Set 4 : make OutputConfigurator::EnterState() power-state-aware #

Patch Set 5 : fix typo in comment and handle old internal-on requests #

Patch Set 6 : merge #

Patch Set 7 : call CreateFrameBuffer() and ConfigureCTM() unconditionally #

Patch Set 8 : ugh, TrayDisplay was including output_configurator.h on windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+316 lines, -134 lines) Patch
M ash/system/chromeos/tray_display.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -0 lines 0 comments Download
M ash/system/chromeos/tray_display.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ash/wm/user_activity_detector.h View 1 2 3 4 chunks +14 lines, -7 lines 0 comments Download
M ash/wm/user_activity_detector.cc View 1 2 3 4 chunks +22 lines, -11 lines 0 comments Download
M ash/wm/user_activity_detector_unittest.cc View 1 2 3 4 2 chunks +20 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/dbus/cros_dbus_service.cc View 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/dbus/display_power_service_provider.h View 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/dbus/display_power_service_provider.cc View 1 2 3 1 chunk +66 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/dbus/org.chromium.LibCrosService.conf View 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/power/output_observer.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/power/output_observer.cc View 1 2 3 4 1 chunk +18 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/power/resume_observer.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/power/suspend_observer.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/power/suspend_observer.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/dbus/power_manager_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/dbus/power_manager_client.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/display/output_configurator.h View 1 2 3 5 chunks +20 lines, -10 lines 0 comments Download
M chromeos/display/output_configurator.cc View 1 2 3 4 5 6 12 chunks +72 lines, -84 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Daniel Erat
https://codereview.chromium.org/12391004/diff/1/chromeos/display/output_configurator.cc File chromeos/display/output_configurator.cc (right): https://codereview.chromium.org/12391004/diff/1/chromeos/display/output_configurator.cc#newcode688 chromeos/display/output_configurator.cc:688: config.x = 0; I'm not sure how to test ...
7 years, 9 months ago (2013-02-28 01:48:53 UTC) #1
marcheu
Didn't look at the output_configurator in depth yet, but that'll have to wait for tomorrow. ...
7 years, 9 months ago (2013-02-28 04:58:59 UTC) #2
Daniel Erat
https://codereview.chromium.org/12391004/diff/1/chrome/browser/chromeos/dbus/display_power_service_provider.cc File chrome/browser/chromeos/dbus/display_power_service_provider.cc (right): https://codereview.chromium.org/12391004/diff/1/chrome/browser/chromeos/dbus/display_power_service_provider.cc#newcode62 chrome/browser/chromeos/dbus/display_power_service_provider.cc:62: // that it can ignore such events. On 2013/02/28 ...
7 years, 9 months ago (2013-02-28 18:13:13 UTC) #3
marcheu
lgtm
7 years, 9 months ago (2013-03-01 01:12:40 UTC) #4
Daniel Erat
Another look?
7 years, 9 months ago (2013-03-06 01:26:55 UTC) #5
marcheu
lgtm
7 years, 9 months ago (2013-03-07 00:56:30 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/12391004/25001
7 years, 9 months ago (2013-03-07 01:06:25 UTC) #7
commit-bot: I haz the power
Presubmit check for 12391004-25001 failed and returned exit status 1. INFO:root:Found 17 file(s). Running presubmit ...
7 years, 9 months ago (2013-03-07 01:06:34 UTC) #8
Daniel Erat
TBR sky for .gypi
7 years, 9 months ago (2013-03-07 01:08:05 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/12391004/25001
7 years, 9 months ago (2013-03-07 01:08:51 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/12391004/44001
7 years, 9 months ago (2013-03-07 02:43:54 UTC) #11
commit-bot: I haz the power
7 years, 9 months ago (2013-03-07 05:24:08 UTC) #12
Message was sent while issue was closed.
Change committed as 186625

Powered by Google App Engine
This is Rietveld 408576698