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

Unified Diff: content/browser/renderer_host/offscreen_canvas_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: content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc
diff --git a/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc b/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc
index 7dd5c26eac56e9eb1f07cd7e5046104cc36841fc..8acaa32bb0959fe834946e0548381c65b2ed7260 100644
--- a/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc
+++ b/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc
@@ -19,13 +19,14 @@ OffscreenCanvasCompositorFrameSink::OffscreenCanvasCompositorFrameSink(
cc::mojom::MojoCompositorFrameSinkClientPtr client)
: provider_(provider),
support_(this,
- provider->GetSurfaceManager(),
+
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)),
binding_(this, std::move(request)) {
+ constexpr bool needs_sync_points = true;
+ support_.Init(provider->GetSurfaceManager(), needs_sync_points);
binding_.set_connection_error_handler(
base::Bind(&OffscreenCanvasCompositorFrameSink::OnClientConnectionLost,
base::Unretained(this)));

Powered by Google App Engine
This is Rietveld 408576698