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

Unified Diff: content/test/test_render_view_host.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/test/test_render_view_host.cc
diff --git a/content/test/test_render_view_host.cc b/content/test/test_render_view_host.cc
index 2b143486c90a7890fd01f4b31bac4c525e6e842e..b82403a22fbe508a2d5da91471c36fbd16e0f94d 100644
--- a/content/test/test_render_view_host.cc
+++ b/content/test/test_render_view_host.cc
@@ -104,10 +104,6 @@ bool TestRenderWidgetHostView::HasFocus() const {
return true;
}
-bool TestRenderWidgetHostView::IsSurfaceAvailableForCopy() const {
- return true;
-}
-
void TestRenderWidgetHostView::Show() {
is_showing_ = true;
is_occluded_ = false;
@@ -140,25 +136,6 @@ gfx::Rect TestRenderWidgetHostView::GetViewBounds() const {
return gfx::Rect();
}
-void TestRenderWidgetHostView::CopyFromCompositingSurface(
- const gfx::Rect& src_subrect,
- const gfx::Size& dst_size,
- const ReadbackRequestCallback& callback,
- const SkColorType preferred_color_type) {
- callback.Run(SkBitmap(), content::READBACK_FAILED);
-}
-
-void TestRenderWidgetHostView::CopyFromCompositingSurfaceToVideoFrame(
- const gfx::Rect& src_subrect,
- const scoped_refptr<media::VideoFrame>& target,
- const base::Callback<void(const gfx::Rect&, bool)>& callback) {
- callback.Run(gfx::Rect(), false);
-}
-
-bool TestRenderWidgetHostView::CanCopyToVideoFrame() const {
- return false;
-}
-
bool TestRenderWidgetHostView::HasAcceleratedSurface(
const gfx::Size& desired_size) {
return false;
« no previous file with comments | « content/test/test_render_view_host.h ('k') | extensions/browser/api/guest_view/web_view/web_view_internal_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698