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

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

Issue 2696743002: Prepare CompositorFrameSinkSupport To Be Used By DirectCompositorFrameSink (Closed)
Patch Set: Rename submits_to_display_compositor_ to is_root_ 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
« no previous file with comments | « content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 580924cc989b5e194546c89a0f7b9462287c584f..c3adfdc8c0c740d489ec39082e5674adfa26a639 100644
--- a/content/renderer/android/synchronous_compositor_frame_sink.cc
+++ b/content/renderer/android/synchronous_compositor_frame_sink.cc
@@ -168,12 +168,16 @@ bool SynchronousCompositorFrameSink::BindToClient(
base::Unretained(this)));
registry_->RegisterCompositorFrameSink(routing_id_, this);
+ constexpr bool root_support_is_root = true;
+ 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(
- this, surface_manager_.get(), kRootFrameSinkId,
- true /* submits_to_display_compositor */));
+ this, surface_manager_.get(), kRootFrameSinkId, root_support_is_root,
+ handles_frame_sink_id_invalidation, needs_sync_points));
child_support_.reset(new cc::CompositorFrameSinkSupport(
- this, surface_manager_.get(), kChildFrameSinkId,
- false /* submits_to_display_compositor */));
+ this, surface_manager_.get(), kChildFrameSinkId, child_support_is_root,
+ 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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698