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

Unified Diff: content/browser/renderer_host/offscreen_canvas_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: content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc
diff --git a/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc b/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc
index c4a16f2fadb5906a7521d1e0021a877ca08ca8ce..ac28594252a7e19cf6d1387fa9d0d6f5c4427a3a 100644
--- a/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc
+++ b/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc
@@ -89,4 +89,18 @@ void OffscreenCanvasCompositorFrameSink::OnClientConnectionLost() {
support_.frame_sink_id());
}
+void OffscreenCanvasCompositorFrameSink::RequestCopyOfSurface(
+ std::unique_ptr<cc::CopyOutputRequest> request,
+ const RequestCopyOfSurfaceCallback& callback) {
+ request->set_result_callback(callback);
+ support_.RequestCopyOfSurface(std::move(request));
+}
+
+void OffscreenCanvasCompositorFrameSink::DeleteMailbox(
+ const gpu::Mailbox& mailbox,
+ const ::gpu::SyncToken& sync_token,
+ bool is_lost) {
+ support_.DeleteMailbox(mailbox, sync_token, is_lost);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698