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

Unified Diff: components/display_compositor/gpu_compositor_frame_sink.cc

Issue 2683583005: Move display_ From CompositorFrameSinkSupport To GpuDisplayCompositorFrameSink (Closed)
Patch Set: rebase 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: components/display_compositor/gpu_compositor_frame_sink.cc
diff --git a/components/display_compositor/gpu_compositor_frame_sink.cc b/components/display_compositor/gpu_compositor_frame_sink.cc
index 9c1a4df2f8a94af97d71e9e5943ad8dd52f324f5..410b419572ea297e1f50ba6a367a1ee40db1c724 100644
--- a/components/display_compositor/gpu_compositor_frame_sink.cc
+++ b/components/display_compositor/gpu_compositor_frame_sink.cc
@@ -4,6 +4,7 @@
#include "components/display_compositor/gpu_compositor_frame_sink.h"
+#include "cc/surfaces/surface_manager.h"
#include "cc/surfaces/surface_reference.h"
namespace display_compositor {
@@ -12,17 +13,17 @@ GpuCompositorFrameSink::GpuCompositorFrameSink(
GpuCompositorFrameSinkDelegate* delegate,
cc::SurfaceManager* surface_manager,
const cc::FrameSinkId& frame_sink_id,
- cc::Display* display,
cc::mojom::MojoCompositorFrameSinkPrivateRequest
compositor_frame_sink_private_request,
- cc::mojom::MojoCompositorFrameSinkClientPtr client)
+ cc::mojom::MojoCompositorFrameSinkClientPtr client,
+ bool has_display)
: delegate_(delegate),
support_(this,
surface_manager,
frame_sink_id,
- display,
true /* handles_frame_sink_id_invalidation */,
- true /* needs_sync_points */),
+ true /* needs_sync_points */,
+ has_display),
surface_manager_(surface_manager),
client_(std::move(client)),
compositor_frame_sink_private_binding_(

Powered by Google App Engine
This is Rietveld 408576698