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

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

Issue 479713002: [Ozone-GBM] Adding NativeWindowDelegate to IPC window changes to the GPU (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix name Created 6 years, 4 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 | « ui/ozone/platform/dri/ozone_platform_gbm.cc ('k') | ui/ozone/platform/dri/screen_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9c151bab124dc94ad0a48afd291880526ada5de8..1dc1e52ea24c5a8e043285ee75782db6adf6ff36 100644
--- a/ui/ozone/platform/dri/screen_manager.h
+++ b/ui/ozone/platform/dri/screen_manager.h
@@ -55,6 +55,15 @@ class ScreenManager {
base::WeakPtr<HardwareDisplayController> GetDisplayController(
gfx::AcceleratedWidget widget);
+ // Returns a reference to the display controller configured to display within
+ // |bounds|.
+ // This returns a weak reference since the display controller may be destroyed
+ // at any point in time, but the changes are propagated to the compositor much
+ // later (Compositor owns SurfaceOzone*, which is responsible for updating the
+ // display surface).
+ base::WeakPtr<HardwareDisplayController> GetDisplayController(
+ const gfx::Rect& bounds);
+
private:
typedef std::map<gfx::AcceleratedWidget, HardwareDisplayController*>
HardwareDisplayControllerMap;
@@ -69,6 +78,11 @@ class ScreenManager {
HardwareDisplayControllerMap::iterator FindDisplayControllerByOrigin(
const gfx::Point& origin);
+ // Returns an iterator into |controllers_| for the controller located within
+ // |bounds|.
+ HardwareDisplayControllerMap::iterator FindActiveDisplayControllerByLocation(
+ const gfx::Rect& bounds);
+
// Perform modesetting in |controller| using |origin| and |mode|.
bool ModesetDisplayController(HardwareDisplayController* controller,
const gfx::Point& origin,
« no previous file with comments | « ui/ozone/platform/dri/ozone_platform_gbm.cc ('k') | ui/ozone/platform/dri/screen_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698