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

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

Issue 2541683004: Add/remove surface references via MojoCompositorFrameSink. (Closed)
Patch Set: Created 4 years 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/gpu_compositor_frame_sink.cc
diff --git a/services/ui/surfaces/gpu_compositor_frame_sink.cc b/services/ui/surfaces/gpu_compositor_frame_sink.cc
index 92e2ec05c6b60dc57b6fe2063c6f7f8cab3798a1..4d0371a7c4d2037fa38a4da05d0002aa5d2a042c 100644
--- a/services/ui/surfaces/gpu_compositor_frame_sink.cc
+++ b/services/ui/surfaces/gpu_compositor_frame_sink.cc
@@ -97,6 +97,18 @@ void GpuCompositorFrameSink::SubmitCompositorFrame(
}
}
+void GpuCompositorFrameSink::AddSurfaceReferences(
+ const std::vector<cc::SurfaceReference>& references) {
+ for (auto& ref : references)
+ display_compositor_->AddSurfaceReference(ref);
+}
+
+void GpuCompositorFrameSink::RemoveSurfaceReferences(
+ const std::vector<cc::SurfaceReference>& references) {
+ for (auto& ref : references)
+ display_compositor_->RemoveSurfaceReference(ref);
+}
+
void GpuCompositorFrameSink::DidReceiveCompositorFrameAck() {
if (!client_)
return;

Powered by Google App Engine
This is Rietveld 408576698