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 Review URL: https://codereview.chromium.org/932203002 Cr-Commit-Position: refs/heads/master@{#316918}
Showing
Please register or sign in to comment