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

Unified Diff: media/filters/skcanvas_video_renderer.h

Issue 850993002: gpu video: optimize HW video to SW canvas and implement it for WebRTC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android build fail Created 5 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
« no previous file with comments | « media/filters/mock_gpu_video_accelerator_factories.h ('k') | media/filters/skcanvas_video_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/skcanvas_video_renderer.h
diff --git a/media/filters/skcanvas_video_renderer.h b/media/filters/skcanvas_video_renderer.h
index bd1a729ea6b045cb48130b25e63e49ccc6506740..66ff674f7ffbc61b4f60887f78c1662d35f4f0fb 100644
--- a/media/filters/skcanvas_video_renderer.h
+++ b/media/filters/skcanvas_video_renderer.h
@@ -31,8 +31,8 @@ class MEDIA_EXPORT SkCanvasVideoRenderer {
// Paints |video_frame| on |canvas|, scaling and rotating the result to fit
// dimensions specified by |dest_rect|.
- // If the format of |video_frame| is VideoFrame::NATIVE_TEXTURE and |canvas|
- // is ganeshed, |context_3d| must be provided.
+ // If the format of |video_frame| is VideoFrame::NATIVE_TEXTURE, |context_3d|
+ // must be provided.
//
// Black will be painted on |canvas| if |video_frame| is null.
void Paint(const scoped_refptr<VideoFrame>& video_frame,
@@ -44,7 +44,11 @@ class MEDIA_EXPORT SkCanvasVideoRenderer {
const Context3D& context_3d);
// Copy |video_frame| on |canvas|.
- void Copy(const scoped_refptr<VideoFrame>&, SkCanvas* canvas);
+ // If the format of |video_frame| is VideoFrame::NATIVE_TEXTURE, |context_3d|
+ // must be provided.
+ void Copy(const scoped_refptr<VideoFrame>& video_frame,
+ SkCanvas* canvas,
+ const Context3D& context_3d);
// Convert the contents of |video_frame| to raw RGB pixels. |rgb_pixels|
// should point into a buffer large enough to hold as many 32 bit RGBA pixels
« no previous file with comments | « media/filters/mock_gpu_video_accelerator_factories.h ('k') | media/filters/skcanvas_video_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698