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

Unified Diff: components/viz/frame_sinks/gpu_compositor_frame_sink.cc

Issue 2807653003: Move Work From CompositorFrameSinkSupport() To Init() (Closed)
Patch Set: Set needs_sync_points Created 3 years, 8 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/viz/frame_sinks/gpu_compositor_frame_sink.cc
diff --git a/components/viz/frame_sinks/gpu_compositor_frame_sink.cc b/components/viz/frame_sinks/gpu_compositor_frame_sink.cc
index f3240e8b36d3a30e142bd5839f62802695c8db88..f21ab00f35d0644450ca0dde305255b5ace3e11a 100644
--- a/components/viz/frame_sinks/gpu_compositor_frame_sink.cc
+++ b/components/viz/frame_sinks/gpu_compositor_frame_sink.cc
@@ -17,16 +17,16 @@ GpuCompositorFrameSink::GpuCompositorFrameSink(
: delegate_(delegate),
support_(base::MakeUnique<cc::CompositorFrameSinkSupport>(
this,
- surface_manager,
frame_sink_id,
false /* is_root */,
- true /* handles_frame_sink_id_invalidation */,
- true /* needs_sync_points */)),
+ true /* handles_frame_sink_id_invalidation */)),
client_(std::move(client)),
compositor_frame_sink_binding_(this, std::move(request)),
compositor_frame_sink_private_binding_(
this,
std::move(compositor_frame_sink_private_request)) {
+ constexpr bool needs_sync_points = true;
+ support_->Init(surface_manager, needs_sync_points);
compositor_frame_sink_binding_.set_connection_error_handler(base::Bind(
&GpuCompositorFrameSink::OnClientConnectionLost, base::Unretained(this)));
compositor_frame_sink_private_binding_.set_connection_error_handler(

Powered by Google App Engine
This is Rietveld 408576698