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

Unified Diff: services/ui/ws/server_window_compositor_frame_sink_manager.cc

Issue 2715663007: Implement temporary reference assignment with DisplayCompositor. (Closed)
Patch Set: Rebase. 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 | « services/ui/ws/server_window_compositor_frame_sink_manager.h ('k') | services/ui/ws/window_server.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/server_window_compositor_frame_sink_manager.cc
diff --git a/services/ui/ws/server_window_compositor_frame_sink_manager.cc b/services/ui/ws/server_window_compositor_frame_sink_manager.cc
index 77b3b33a30f5bb76c14fdd0554e8afdf706d1e6b..6c72261ef3653c79ca23d0e34ad5300a97b33436 100644
--- a/services/ui/ws/server_window_compositor_frame_sink_manager.cc
+++ b/services/ui/ws/server_window_compositor_frame_sink_manager.cc
@@ -55,5 +55,14 @@ void ServerWindowCompositorFrameSinkManager::CreateCompositorFrameSink(
std::move(pending_compositor_frame_sink_request_), std::move(client));
}
+void ServerWindowCompositorFrameSinkManager::ClaimTemporaryReference(
+ const cc::SurfaceId& surface_id) {
+ if (!compositor_frame_sink_.is_bound()) {
+ pending_compositor_frame_sink_request_ =
+ mojo::MakeRequest(&compositor_frame_sink_);
+ }
+ compositor_frame_sink_->ClaimTemporaryReference(surface_id);
+}
+
} // namespace ws
} // namespace ui
« no previous file with comments | « services/ui/ws/server_window_compositor_frame_sink_manager.h ('k') | services/ui/ws/window_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698