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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.h " 5 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.h "
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "cc/surfaces/surface.h" 8 #include "cc/surfaces/surface.h"
9 #include "cc/surfaces/surface_manager.h" 9 #include "cc/surfaces/surface_manager.h"
10 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_p rovider_impl.h" 10 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_p rovider_impl.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void OffscreenCanvasCompositorFrameSink::WillDrawSurface() { 82 void OffscreenCanvasCompositorFrameSink::WillDrawSurface() {
83 if (client_) 83 if (client_)
84 client_->WillDrawSurface(); 84 client_->WillDrawSurface();
85 } 85 }
86 86
87 void OffscreenCanvasCompositorFrameSink::OnClientConnectionLost() { 87 void OffscreenCanvasCompositorFrameSink::OnClientConnectionLost() {
88 provider_->OnCompositorFrameSinkClientConnectionLost( 88 provider_->OnCompositorFrameSinkClientConnectionLost(
89 support_.frame_sink_id()); 89 support_.frame_sink_id());
90 } 90 }
91 91
92 void OffscreenCanvasCompositorFrameSink::RequestCopyOfSurface(
93 std::unique_ptr<cc::CopyOutputRequest> request,
94 const RequestCopyOfSurfaceCallback& callback) {
95 request->set_result_callback(callback);
96 support_.RequestCopyOfSurface(std::move(request));
97 }
98
99 void OffscreenCanvasCompositorFrameSink::DeleteMailbox(
100 const gpu::Mailbox& mailbox,
101 const ::gpu::SyncToken& sync_token,
102 bool is_lost) {
103 support_.DeleteMailbox(mailbox, sync_token, is_lost);
104 }
105
92 } // namespace content 106 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698