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

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

Issue 2541683004: Add/remove surface references via MojoCompositorFrameSink. (Closed)
Patch Set: WIP 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
« no previous file with comments | « services/ui/surfaces/gpu_compositor_frame_sink.h ('k') | services/ui/ws/frame_generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b27e881e0f3bed73c1a9ccb77e535803ec734844..bc35f309985ed936c0590a6d2cec8de58b889830 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);
Fady Samuel 2016/12/04 23:30:12 I'd love to see this added to CompositorFrameSinkS
kylechar 2016/12/05 20:26:45 CompositorFrameSinkSupport doesn't have access to
+}
+
+void GpuCompositorFrameSink::RemoveSurfaceReferences(
+ const std::vector<cc::SurfaceReference>& references) {
+ for (auto& ref : references)
+ display_compositor_->RemoveSurfaceReference(ref);
+}
+
void GpuCompositorFrameSink::DidReceiveCompositorFrameAck() {
if (!client_)
return;
« no previous file with comments | « services/ui/surfaces/gpu_compositor_frame_sink.h ('k') | services/ui/ws/frame_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698