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

Unified Diff: content/renderer/android/synchronous_compositor_frame_sink.cc

Issue 2807653003: Move Work From CompositorFrameSinkSupport() To Init() (Closed)
Patch Set: Add CompositorFrameSinkSupport::Create 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/renderer/android/synchronous_compositor_frame_sink.cc
diff --git a/content/renderer/android/synchronous_compositor_frame_sink.cc b/content/renderer/android/synchronous_compositor_frame_sink.cc
index e2345652ba0989206dc1b38ecde242219746a1f1..8f87767e9fb7d774af18315770c8fe660888d7e8 100644
--- a/content/renderer/android/synchronous_compositor_frame_sink.cc
+++ b/content/renderer/android/synchronous_compositor_frame_sink.cc
@@ -175,12 +175,12 @@ bool SynchronousCompositorFrameSink::BindToClient(
constexpr bool child_support_is_root = false;
constexpr bool handles_frame_sink_id_invalidation = true;
constexpr bool needs_sync_points = true;
- root_support_.reset(new cc::CompositorFrameSinkSupport(
+ root_support_ = cc::CompositorFrameSinkSupport::Create(
this, surface_manager_.get(), kRootFrameSinkId, root_support_is_root,
- handles_frame_sink_id_invalidation, needs_sync_points));
- child_support_.reset(new cc::CompositorFrameSinkSupport(
+ handles_frame_sink_id_invalidation, needs_sync_points);
+ child_support_ = cc::CompositorFrameSinkSupport::Create(
this, surface_manager_.get(), kChildFrameSinkId, child_support_is_root,
- handles_frame_sink_id_invalidation, needs_sync_points));
+ handles_frame_sink_id_invalidation, needs_sync_points);
cc::RendererSettings software_renderer_settings;
« no previous file with comments | « content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc ('k') | ui/android/delegated_frame_host_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698