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

Unified Diff: services/ui/surfaces/gpu_display_compositor_frame_sink.cc

Issue 2654693003: Decouple GpuCompositorFrameSink from DisplayCompositor (Closed)
Patch Set: Fix vars Created 3 years, 11 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: services/ui/surfaces/gpu_display_compositor_frame_sink.cc
diff --git a/services/ui/surfaces/gpu_display_compositor_frame_sink.cc b/services/ui/surfaces/gpu_display_compositor_frame_sink.cc
index 229779c63734ff8807257450ac2841bf6ab20003..38dc9508f49bcb354108bb92e6979b4d3227c2ac 100644
--- a/services/ui/surfaces/gpu_display_compositor_frame_sink.cc
+++ b/services/ui/surfaces/gpu_display_compositor_frame_sink.cc
@@ -7,7 +7,8 @@
namespace ui {
GpuDisplayCompositorFrameSink::GpuDisplayCompositorFrameSink(
- DisplayCompositor* display_compositor,
+ cc::CompositorFrameSinkDelegate* delegate,
+ cc::SurfaceManager* surface_manager,
const cc::FrameSinkId& frame_sink_id,
std::unique_ptr<cc::Display> display,
std::unique_ptr<cc::BeginFrameSource> begin_frame_source,
@@ -16,7 +17,8 @@ GpuDisplayCompositorFrameSink::GpuDisplayCompositorFrameSink(
compositor_frame_sink_private_request,
cc::mojom::MojoCompositorFrameSinkClientPtr client,
cc::mojom::DisplayPrivateAssociatedRequest display_private_request)
- : GpuCompositorFrameSink(display_compositor,
+ : GpuCompositorFrameSink(delegate,
+ surface_manager,
frame_sink_id,
std::move(display),
std::move(begin_frame_source),

Powered by Google App Engine
This is Rietveld 408576698