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

Unified Diff: media/filters/skcanvas_video_renderer.h

Issue 531353002: Add VideoImageGenerator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/blink/webmediaplayer_impl.cc ('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 3d1f4da56f76ef31b546b581bd1c85ca5ecdb2ee..a44607395de3ae4c03313694a21dfe83d55ffcdc 100644
--- a/media/filters/skcanvas_video_renderer.h
+++ b/media/filters/skcanvas_video_renderer.h
@@ -5,6 +5,7 @@
#ifndef MEDIA_FILTERS_SKCANVAS_VIDEO_RENDERER_H_
#define MEDIA_FILTERS_SKCANVAS_VIDEO_RENDERER_H_
+#include "base/memory/ref_counted.h"
#include "base/time/time.h"
#include "media/base/media_export.h"
#include "media/base/video_rotation.h"
@@ -17,6 +18,7 @@ class SkCanvas;
namespace media {
class VideoFrame;
+class VideoImageGenerator;
// Handles rendering of VideoFrames to SkCanvases, doing any necessary YUV
// conversion and caching of resulting RGB bitmaps.
@@ -29,7 +31,7 @@ class MEDIA_EXPORT SkCanvasVideoRenderer {
// specified by |dest_rect|.
//
// Black will be painted on |canvas| if |video_frame| is null.
- void Paint(media::VideoFrame* video_frame,
+ void Paint(const scoped_refptr<VideoFrame>& video_frame,
SkCanvas* canvas,
const gfx::RectF& dest_rect,
uint8 alpha,
@@ -37,9 +39,11 @@ class MEDIA_EXPORT SkCanvasVideoRenderer {
VideoRotation video_rotation);
// Copy |video_frame| on |canvas|.
- void Copy(media::VideoFrame* video_frame, SkCanvas* canvas);
+ void Copy(const scoped_refptr<VideoFrame>&, SkCanvas* canvas);
private:
+ VideoImageGenerator* generator_;
+
// An RGB bitmap and corresponding timestamp of the previously converted
// video frame data.
SkBitmap last_frame_;
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | media/filters/skcanvas_video_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698