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

Unified Diff: cc/surfaces/direct_compositor_frame_sink.h

Issue 2684933003: Move frame_sink_id management to framesink_manager.cc/h from (Closed)
Patch Set: 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
Index: cc/surfaces/direct_compositor_frame_sink.h
diff --git a/cc/surfaces/direct_compositor_frame_sink.h b/cc/surfaces/direct_compositor_frame_sink.h
index 609f3813ec510a3277637c87ce4b91c63cf460b9..2c764068f334fe2d824f5b067f23a19f90cc4550 100644
--- a/cc/surfaces/direct_compositor_frame_sink.h
+++ b/cc/surfaces/direct_compositor_frame_sink.h
@@ -18,6 +18,7 @@ namespace cc {
class Display;
class SurfaceIdAllocator;
class SurfaceManager;
+class FrameSinkManager;
// This class submits compositor frames to an in-process Display, with the
// client's frame being the root surface of the Display.
@@ -31,6 +32,7 @@ class CC_SURFACES_EXPORT DirectCompositorFrameSink
DirectCompositorFrameSink(
const FrameSinkId& frame_sink_id,
SurfaceManager* surface_manager,
+ FrameSinkManager* framesink_manager,
Display* display,
scoped_refptr<ContextProvider> context_provider,
scoped_refptr<ContextProvider> worker_context_provider,
@@ -39,6 +41,7 @@ class CC_SURFACES_EXPORT DirectCompositorFrameSink
DirectCompositorFrameSink(
const FrameSinkId& frame_sink_id,
SurfaceManager* surface_manager,
+ FrameSinkManager* framesink_manager,
Display* display,
scoped_refptr<VulkanContextProvider> vulkan_context_provider);
~DirectCompositorFrameSink() override;
@@ -68,6 +71,7 @@ class CC_SURFACES_EXPORT DirectCompositorFrameSink
const FrameSinkId frame_sink_id_;
LocalSurfaceId delegated_local_surface_id_;
SurfaceManager* surface_manager_;
+ FrameSinkManager* framesink_manager_;
SurfaceIdAllocator surface_id_allocator_;
Display* display_;
SurfaceFactory factory_;

Powered by Google App Engine
This is Rietveld 408576698