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

Unified Diff: components/exo/compositor_frame_sink.cc

Issue 2676353002: MojoCompositorFrameSinkPrivate should support copy requests (Closed)
Patch Set: 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
Index: components/exo/compositor_frame_sink.cc
diff --git a/components/exo/compositor_frame_sink.cc b/components/exo/compositor_frame_sink.cc
index 59a3ea4acb67a0ea7ba671f23b5f48a68ea7425a..4ce128a28f40f2726d4dccab567f43b9a8c5ff03 100644
--- a/components/exo/compositor_frame_sink.cc
+++ b/components/exo/compositor_frame_sink.cc
@@ -49,6 +49,19 @@ void CompositorFrameSink::Satisfy(const cc::SurfaceSequence& sequence) {
support_.Satisfy(sequence);
}
+void CompositorFrameSink::RequestCopyOfSurface(
+ std::unique_ptr<cc::CopyOutputRequest> request,
+ const RequestCopyOfSurfaceCallback& callback) {
+ request->set_result_callback(callback);
+ support_.RequestCopyOfSurface(std::move(request));
+}
+
+void CompositorFrameSink::DeleteMailbox(const gpu::Mailbox& mailbox,
+ const ::gpu::SyncToken& sync_token,
+ bool is_lost) {
+ support_.DeleteMailbox(mailbox, sync_token, is_lost);
+}
+
////////////////////////////////////////////////////////////////////////////////
// cc::CompositorFrameSinkSupportClient overrides:

Powered by Google App Engine
This is Rietveld 408576698