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

Unified Diff: android_webview/browser/hardware_renderer.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: android_webview/browser/hardware_renderer.cc
diff --git a/android_webview/browser/hardware_renderer.cc b/android_webview/browser/hardware_renderer.cc
index 655dd44415b2571f754198a59bf6af2e24ddbe66..013c07626c1a8f9c570cde3d5f748e7ce61cae9c 100644
--- a/android_webview/browser/hardware_renderer.cc
+++ b/android_webview/browser/hardware_renderer.cc
@@ -256,11 +256,13 @@ void HardwareRenderer::ReturnResourcesToCompositor(
}
void HardwareRenderer::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, surfaces_->GetSurfaceManager(), 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(surfaces_->GetSurfaceManager(), needs_sync_points);
}
} // namespace android_webview
« no previous file with comments | « no previous file | android_webview/browser/surfaces_instance.cc » ('j') | cc/surfaces/compositor_frame_sink_support.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698