Index: ui/compositor/compositor.h |
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h |
index 92696ade86a16ef4b7811f318b7e6f13a05c43ab..e1e6554894354077d53a89edf39664edfd201824 100644 |
--- a/ui/compositor/compositor.h |
+++ b/ui/compositor/compositor.h |
@@ -48,6 +48,10 @@ class SurfaceManager; |
class TaskGraphRunner; |
} |
+namespace display_compositor { |
+class DisplayCompositor; |
+} |
+ |
namespace gfx { |
class Rect; |
class ScrollOffset; |
@@ -101,6 +105,10 @@ class COMPOSITOR_EXPORT ContextFactoryPrivate { |
// Gets the surface manager. |
virtual cc::SurfaceManager* GetSurfaceManager() = 0; |
+ // Gets the display compositor responsible for hosting a SurfaceManager and |
+ // dispensing CompositorFrameSinks. |
+ virtual display_compositor::DisplayCompositor* GetDisplayCompositor() = 0; |
+ |
// Inform the display corresponding to this compositor if it is visible. When |
// false it does not need to produce any frames. Visibility is reset for each |
// call to CreateCompositorFrameSink. |