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

Unified Diff: services/ui/surfaces/display_compositor.cc

Issue 2582823002: WIP: Surface Synchronization System
Patch Set: Only create ClientSurfaceEmbedder if window is visible. Trash it otherwise. Created 3 years, 11 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: services/ui/surfaces/display_compositor.cc
diff --git a/services/ui/surfaces/display_compositor.cc b/services/ui/surfaces/display_compositor.cc
index a7d48a911204453ff41b58dfe7c05e51c865a009..05610d162835c82732ff5b346ef022661a68ba0d 100644
--- a/services/ui/surfaces/display_compositor.cc
+++ b/services/ui/surfaces/display_compositor.cc
@@ -106,6 +106,13 @@ void DisplayCompositor::CreateDisplayCompositorFrameSink(
std::unique_ptr<cc::Display> display =
CreateDisplay(frame_sink_id, surface_handle, begin_frame_source.get());
+ if (!manager_.lock_manager()) {
+ std::unique_ptr<cc::DisplayCompositorLockManager> lock_manager(
+ new cc::DisplayCompositorLockManager(&manager_,
+ begin_frame_source.get()));
+ manager_.SetLockManager(std::move(lock_manager));
+ }
+
compositor_frame_sinks_[frame_sink_id] =
base::MakeUnique<GpuDisplayCompositorFrameSink>(
this, frame_sink_id, std::move(display),

Powered by Google App Engine
This is Rietveld 408576698