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

Issue 932203002: Move check for suspended displays out of common path (Closed)

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

Description

Move check for suspended displays out of common path Checking if the displays are suspended in DisplayConfigurator::RunPendingConfiguration is exposing a race condition in the interaction between chrome and powerd. The original reason for adding the check was to ensure that chrome did not attempt to perform any modesets while the chrome os device was in a dark resume. Since this really only happens when the display configuration changes, we can move the check into OnConfigurationChanged. Also, to deal with the possbility that the configuration timer was started right before the system suspended, stop the timer in SuspendDisplays. The DisplayConfigurator will force a probe and re-configuration on resume anyway so stopping the timer at suspend time will not really make a difference. BUG=chrome-os-partner:36723, 459783 Committed: https://crrev.com/797288279c906fc0b8d89aec55bad18ad975f187 Cr-Commit-Position: refs/heads/master@{#316918}

Patch Set 1 #

Patch Set 2 : update unittests #

Patch Set 3 : check that SetDisplayPower and SetDisplayMode still work #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -11 lines) Patch
M ui/display/chromeos/display_configurator.cc View 3 chunks +12 lines, -8 lines 0 comments Download
M ui/display/chromeos/display_configurator_unittest.cc View 1 2 2 chunks +52 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Chirantan Ekbote
Please take a look. This change will block OnConfigurationChanged events from doing anything with the ...
5 years, 10 months ago (2015-02-18 21:04:59 UTC) #2
Daniel Erat
looks fine, but can you also update display_configurator_unittest.cc to cover the change?
5 years, 10 months ago (2015-02-18 21:12:38 UTC) #3
Chirantan Ekbote
On 2015/02/18 21:12:38, Daniel Erat wrote: > looks fine, but can you also update display_configurator_unittest.cc ...
5 years, 10 months ago (2015-02-18 21:23:30 UTC) #4
dnicoara
lgtm
5 years, 10 months ago (2015-02-18 21:27:27 UTC) #5
Daniel Erat
can you add a call to SetDisplayMode() while "suspended" to make sure it goes through?
5 years, 10 months ago (2015-02-18 21:28:50 UTC) #6
Chirantan Ekbote
On 2015/02/18 21:28:50, Daniel Erat wrote: > can you add a call to SetDisplayMode() while ...
5 years, 10 months ago (2015-02-18 22:50:59 UTC) #8
Daniel Erat
lgtm thanks!
5 years, 10 months ago (2015-02-18 22:51:47 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/932203002/40001
5 years, 10 months ago (2015-02-18 22:58:08 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-18 23:41:26 UTC) #12
commit-bot: I haz the power
5 years, 10 months ago (2015-02-18 23:42:22 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/797288279c906fc0b8d89aec55bad18ad975f187
Cr-Commit-Position: refs/heads/master@{#316918}

Powered by Google App Engine
This is Rietveld 408576698