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

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

Issue 522463005: [Ozone-GBM] Handle GPU crashes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated to allow proper restore of secondary displays Created 6 years, 3 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
Index: ui/ozone/platform/dri/screen_manager.h
diff --git a/ui/ozone/platform/dri/screen_manager.h b/ui/ozone/platform/dri/screen_manager.h
index 46cbd66133f48a8727fb1bbf212dc758f5191eb4..604ed3f9f73010e5c752db74f9be724c320a5290 100644
--- a/ui/ozone/platform/dri/screen_manager.h
+++ b/ui/ozone/platform/dri/screen_manager.h
@@ -29,13 +29,16 @@ class ScreenManager {
ScreenManager(DriWrapper* dri, ScanoutBufferGenerator* surface_generator);
virtual ~ScreenManager();
+ // Register a display controller. This must be called before trying to
+ // configure it.
+ void AddDisplayController(uint32_t crtc, uint32_t connector);
+
// Remove a display controller from the list of active controllers. The
// controller is removed since it was disconnected.
void RemoveDisplayController(uint32_t crtc);
- // Configure (and add if not present) a display controller. The display
- // controller is identified by (|crtc|, |connector|) and the controller is
- // modeset using |mode|.
+ // Configure a display controller. The display controller is identified by
+ // (|crtc|, |connector|) and the controller is modeset using |mode|.
bool ConfigureDisplayController(uint32_t crtc,
uint32_t connector,
const gfx::Point& origin,

Powered by Google App Engine
This is Rietveld 408576698