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

Unified Diff: media/filters/skcanvas_video_renderer.h

Issue 445013002: media: Optimize HW Video to 2D Canvas copy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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.h
diff --git a/media/filters/skcanvas_video_renderer.h b/media/filters/skcanvas_video_renderer.h
deleted file mode 100644
index 9e3622d79c531058aee068ae8bce1e3ccc8de2e8..0000000000000000000000000000000000000000
--- a/media/filters/skcanvas_video_renderer.h
+++ /dev/null
@@ -1,46 +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 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;
-
-// Handles rendering of VideoFrames to SkCanvases, doing any necessary YUV
-// conversion and caching of resulting RGB bitmaps.
-class MEDIA_EXPORT 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::RectF& dest_rect,
- uint8 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 media
-
-#endif // MEDIA_FILTERS_SKCANVAS_VIDEO_RENDERER_H_

Powered by Google App Engine
This is Rietveld 408576698