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

Unified Diff: media/filters/skcanvas_video_renderer_unittest.cc

Issue 445013002: media: Optimize HW Video to 2D Canvas copy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve comments, rebase to ToT Created 6 years, 2 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: media/filters/skcanvas_video_renderer_unittest.cc
diff --git a/media/filters/skcanvas_video_renderer_unittest.cc b/media/filters/skcanvas_video_renderer_unittest.cc
index 8e1ba59701f3838d6bf4b1804fd615bd428cffac..3b388e58b2abc76754b61f48c47c50896416151a 100644
--- a/media/filters/skcanvas_video_renderer_unittest.cc
+++ b/media/filters/skcanvas_video_renderer_unittest.cc
@@ -197,12 +197,13 @@ SkCanvasVideoRendererTest::SkCanvasVideoRendererTest()
SkCanvasVideoRendererTest::~SkCanvasVideoRendererTest() {}
void SkCanvasVideoRendererTest::PaintWithoutFrame(SkCanvas* canvas) {
- renderer_.Paint(NULL,
+ renderer_.Paint(nullptr,
canvas,
kNaturalRect,
0xFF,
SkXfermode::kSrcOver_Mode,
- VIDEO_ROTATION_0);
+ VIDEO_ROTATION_0,
+ Context3DProvider());
}
void SkCanvasVideoRendererTest::Paint(
@@ -237,7 +238,13 @@ void SkCanvasVideoRendererTest::PaintRotated(
media::FillYUV(video_frame.get(), 29, 255, 107);
break;
}
- renderer_.Paint(video_frame, canvas, dest_rect, 0xFF, mode, video_rotation);
+ renderer_.Paint(video_frame,
+ canvas,
+ dest_rect,
+ 0xFF,
+ mode,
+ video_rotation,
+ Context3DProvider());
}
void SkCanvasVideoRendererTest::Copy(

Powered by Google App Engine
This is Rietveld 408576698