| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_RENDERERS_SKCANVAS_VIDEO_RENDERER_H_ | 5 #ifndef MEDIA_RENDERERS_SKCANVAS_VIDEO_RENDERER_H_ |
| 6 #define MEDIA_RENDERERS_SKCANVAS_VIDEO_RENDERER_H_ | 6 #define MEDIA_RENDERERS_SKCANVAS_VIDEO_RENDERER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "third_party/skia/include/core/SkImage.h" | 21 #include "third_party/skia/include/core/SkImage.h" |
| 22 #include "third_party/skia/include/core/SkRefCnt.h" | 22 #include "third_party/skia/include/core/SkRefCnt.h" |
| 23 | 23 |
| 24 class SkCanvas; | 24 class SkCanvas; |
| 25 | 25 |
| 26 namespace gfx { | 26 namespace gfx { |
| 27 class RectF; | 27 class RectF; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace media { | 30 namespace media { |
| 31 class VideoImageGenerator; | |
| 32 | 31 |
| 33 // Handles rendering of VideoFrames to SkCanvases. | 32 // Handles rendering of VideoFrames to SkCanvases. |
| 34 class MEDIA_EXPORT SkCanvasVideoRenderer { | 33 class MEDIA_EXPORT SkCanvasVideoRenderer { |
| 35 public: | 34 public: |
| 36 SkCanvasVideoRenderer(); | 35 SkCanvasVideoRenderer(); |
| 37 ~SkCanvasVideoRenderer(); | 36 ~SkCanvasVideoRenderer(); |
| 38 | 37 |
| 39 // Paints |video_frame| on |canvas|, scaling and rotating the result to fit | 38 // Paints |video_frame| on |canvas|, scaling and rotating the result to fit |
| 40 // dimensions specified by |dest_rect|. | 39 // dimensions specified by |dest_rect|. |
| 41 // If the format of |video_frame| is PIXEL_FORMAT_NATIVE_TEXTURE, |context_3d| | 40 // If the format of |video_frame| is PIXEL_FORMAT_NATIVE_TEXTURE, |context_3d| |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 119 |
| 121 // Used for unit test. | 120 // Used for unit test. |
| 122 SkISize last_image_dimensions_for_testing_; | 121 SkISize last_image_dimensions_for_testing_; |
| 123 | 122 |
| 124 DISALLOW_COPY_AND_ASSIGN(SkCanvasVideoRenderer); | 123 DISALLOW_COPY_AND_ASSIGN(SkCanvasVideoRenderer); |
| 125 }; | 124 }; |
| 126 | 125 |
| 127 } // namespace media | 126 } // namespace media |
| 128 | 127 |
| 129 #endif // MEDIA_RENDERERS_SKCANVAS_VIDEO_RENDERER_H_ | 128 #endif // MEDIA_RENDERERS_SKCANVAS_VIDEO_RENDERER_H_ |
| OLD | NEW |