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

Unified Diff: ui/android/delegated_frame_host_android.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
« no previous file with comments | « content/renderer/android/synchronous_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: ui/android/delegated_frame_host_android.cc
diff --git a/ui/android/delegated_frame_host_android.cc b/ui/android/delegated_frame_host_android.cc
index ccb4c684f6e3e1a7737258990dae3346fc44062d..3b60ed2d55a707993d52adcdc44def3e0b725ea9 100644
--- a/ui/android/delegated_frame_host_android.cc
+++ b/ui/android/delegated_frame_host_android.cc
@@ -188,11 +188,13 @@ void DelegatedFrameHostAndroid::OnDidFinishFrame(const cc::BeginFrameAck& ack) {
}
void DelegatedFrameHostAndroid::CreateNewCompositorFrameSinkSupport() {
+ constexpr bool is_root = false;
+ constexpr bool handles_frame_sink_id_invalidation = false;
+ constexpr bool needs_sync_points = true;
support_.reset();
- support_ = base::MakeUnique<cc::CompositorFrameSinkSupport>(
- this, surface_manager_, frame_sink_id_, false /* is_root */,
- false /* handles_frame_sink_id_invalidation */,
- true /* needs_sync_points */);
+ support_ = cc::CompositorFrameSinkSupport::Create(
+ this, surface_manager_, frame_sink_id_, is_root,
+ handles_frame_sink_id_invalidation, needs_sync_points);
}
cc::SurfaceId DelegatedFrameHostAndroid::SurfaceId() const {
« no previous file with comments | « content/renderer/android/synchronous_compositor_frame_sink.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698