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

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

Issue 554083002: Reland of: [Ozone-GBM] Handle GPU crashes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Match disabled controllers if no active controllers match 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..eeca56ae31e96174f868b931168226e099f67f09 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,
@@ -66,6 +69,11 @@ class ScreenManager {
HardwareDisplayControllers::iterator FindActiveDisplayControllerByLocation(
const gfx::Rect& bounds);
+ // Returns an iterator to the first controller located at |origin|. The
+ // controller may be disabled.
+ HardwareDisplayControllers::iterator FindDisplayControllerByLocation(
+ const gfx::Rect& bounds);
+
// Perform modesetting in |controller| using |origin| and |mode|.
bool ModesetDisplayController(HardwareDisplayController* controller,
const gfx::Point& origin,

Powered by Google App Engine
This is Rietveld 408576698