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

Unified Diff: ui/compositor/compositor.h

Issue 2688593002: WIP: Towards merging OffscreenCanvas and Mus code
Patch Set: Fix reflector unit test Created 3 years, 10 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/compositor/BUILD.gn ('k') | ui/compositor/test/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « ui/compositor/BUILD.gn ('k') | ui/compositor/test/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698