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

Unified Diff: ui/ozone/platform/dri/screen_manager.cc

Issue 845303004: [ozone] Enable display controller before notifying its users that it's available. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/screen_manager.cc
diff --git a/ui/ozone/platform/dri/screen_manager.cc b/ui/ozone/platform/dri/screen_manager.cc
index e273bbdd24abc7c4e198e868e490eaf057391337..bb5833b83e5926ad15c3502e0ed0f012fde084fb 100644
--- a/ui/ozone/platform/dri/screen_manager.cc
+++ b/ui/ozone/platform/dri/screen_manager.cc
@@ -121,10 +121,12 @@ bool ScreenManager::ConfigureDisplayController(uint32_t crtc,
return HandleMirrorMode(it, mirror, crtc, connector);
}
+ // Just re-enable the controller to re-use the current state.
+ bool enabled = controller->Enable();
FOR_EACH_OBSERVER(DisplayChangeObserver, observers_,
OnDisplayChanged(controller));
- // Just re-enable the controller to re-use the current state.
- return controller->Enable();
+
+ return enabled;
}
// Either the mode or the location of the display changed, so exit mirror
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698