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

Unified Diff: webkit/media/skcanvas_video_renderer.h

Issue 11234071: Moved SkCanvasVideoRenderer to media/filters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added MEDIA_EXPORT. Created 8 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
« no previous file with comments | « skia/config/win/stdint.h ('k') | webkit/media/skcanvas_video_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/skcanvas_video_renderer.h
diff --git a/webkit/media/skcanvas_video_renderer.h b/webkit/media/skcanvas_video_renderer.h
deleted file mode 100644
index d7d533957db33104428950dc89e98902a7a20061..0000000000000000000000000000000000000000
--- a/webkit/media/skcanvas_video_renderer.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef WEBKIT_MEDIA_SKCANVAS_VIDEO_RENDERER_H_
-#define WEBKIT_MEDIA_SKCANVAS_VIDEO_RENDERER_H_
-
-#include "base/time.h"
-#include "ui/gfx/rect.h"
-#include "third_party/skia/include/core/SkBitmap.h"
-
-class SkCanvas;
-
-namespace media {
-class VideoFrame;
-}
-
-namespace webkit_media {
-
-// Handles rendering of VideoFrames to SkCanvases, doing any necessary YUV
-// conversion and caching of resulting RGB bitmaps.
-class SkCanvasVideoRenderer {
- public:
- SkCanvasVideoRenderer();
- ~SkCanvasVideoRenderer();
-
- // Paints |video_frame| on |canvas|, scaling the result to fit dimensions
- // specified by |dest_rect|.
- //
- // Black will be painted on |canvas| if |video_frame| is null.
- void Paint(media::VideoFrame* video_frame,
- SkCanvas* canvas,
- const gfx::Rect& dest_rect,
- uint8_t alpha);
-
- private:
- // An RGB bitmap and corresponding timestamp of the previously converted
- // video frame data.
- SkBitmap last_frame_;
- base::TimeDelta last_frame_timestamp_;
-
- DISALLOW_COPY_AND_ASSIGN(SkCanvasVideoRenderer);
-};
-
-} // namespace webkit_media
-
-#endif // WEBKIT_MEDIA_SKCANVAS_VIDEO_RENDERER_H_
« no previous file with comments | « skia/config/win/stdint.h ('k') | webkit/media/skcanvas_video_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698