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

Unified Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 2702093002: Consistent CopyFromSurface() API, consolidated to RWHV (Closed)
Patch Set: REBASE 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/frame_host/render_widget_host_view_child_frame.cc
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.cc b/content/browser/frame_host/render_widget_host_view_child_frame.cc
index eeaac95753fdf487fbebbd36a1a28fe3f22e65ab..93fce7a5f18789645541945e92402179223e8450 100644
--- a/content/browser/frame_host/render_widget_host_view_child_frame.cc
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.cc
@@ -603,7 +603,7 @@ void RenderWidgetHostViewChildFrame::RegisterFrameSwappedCallback(
frame_swapped_callbacks_.push_back(std::move(callback));
}
-void RenderWidgetHostViewChildFrame::CopyFromCompositingSurface(
+void RenderWidgetHostViewChildFrame::CopyFromSurface(
const gfx::Rect& src_subrect,
alexmos 2017/02/28 19:44:09 nit: the header has this as src_rect, make them th
miu 2017/03/01 01:17:02 Done.
const gfx::Size& output_size,
const ReadbackRequestCallback& callback,
@@ -638,18 +638,6 @@ void RenderWidgetHostViewChildFrame::SubmitSurfaceCopyRequest(
surface_factory_->RequestCopyOfSurface(std::move(request));
}
-void RenderWidgetHostViewChildFrame::CopyFromCompositingSurfaceToVideoFrame(
- const gfx::Rect& src_subrect,
- const scoped_refptr<media::VideoFrame>& target,
- const base::Callback<void(const gfx::Rect&, bool)>& callback) {
- NOTIMPLEMENTED();
- callback.Run(gfx::Rect(), false);
-}
-
-bool RenderWidgetHostViewChildFrame::CanCopyToVideoFrame() const {
- return false;
-}
-
bool RenderWidgetHostViewChildFrame::HasAcceleratedSurface(
const gfx::Size& desired_size) {
return false;

Powered by Google App Engine
This is Rietveld 408576698