#ifndef MEDIA_FILTERS_SKCANVAS_VIDEO_RENDERER_H_
#define MEDIA_FILTERS_SKCANVAS_VIDEO_RENDERER_H_
#include "base/time/time.h"
#include "media/base/media_export.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/rect.h"
class SkCanvas;
namespace media {
class VideoFrame;
class MEDIA_EXPORT SkCanvasVideoRenderer {
public:
SkCanvasVideoRenderer();
~SkCanvasVideoRenderer();
void Paint(media::VideoFrame* video_frame,
SkCanvas* canvas,
const gfx::RectF& dest_rect,
uint8 alpha);
private:
SkBitmap last_frame_;
base::TimeDelta last_frame_timestamp_;
DISALLOW_COPY_AND_ASSIGN(SkCanvasVideoRenderer);
};
}
#endif