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

Unified Diff: ui/android/delegated_frame_host_android.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: 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..002b3311382bd67db167b39d5075b9d010b727ed 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 */);
+ this, frame_sink_id_, is_root, handles_frame_sink_id_invalidation);
+ support_->Init(surface_manager_, needs_sync_points);
}
cc::SurfaceId DelegatedFrameHostAndroid::SurfaceId() const {

Powered by Google App Engine
This is Rietveld 408576698