| 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_FILTERS_SKCANVAS_VIDEO_RENDERER_H_ | 5 #ifndef MEDIA_FILTERS_SKCANVAS_VIDEO_RENDERER_H_ |
| 6 #define MEDIA_FILTERS_SKCANVAS_VIDEO_RENDERER_H_ | 6 #define MEDIA_FILTERS_SKCANVAS_VIDEO_RENDERER_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| 11 #include "media/base/media_export.h" | 11 #include "media/base/media_export.h" |
| 12 #include "media/base/video_rotation.h" | 12 #include "media/base/video_rotation.h" |
| 13 #include "third_party/skia/include/core/SkBitmap.h" | 13 #include "third_party/skia/include/core/SkBitmap.h" |
| 14 #include "third_party/skia/include/core/SkXfermode.h" | 14 #include "third_party/skia/include/core/SkXfermode.h" |
| 15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
| 16 | 16 |
| 17 class SkCanvas; | 17 class SkCanvas; |
| 18 | 18 |
| 19 namespace media { | 19 namespace media { |
| 20 | 20 |
| 21 class VideoFrame; | 21 class VideoFrame; |
| 22 class VideoImageGenerator; | 22 class VideoImageGenerator; |
| 23 | 23 |
| 24 // Handles rendering of VideoFrames to SkCanvases, doing any necessary YUV | 24 // Handles rendering of VideoFrames to SkCanvases, doing any necessary YUV |
| 25 // conversion and caching of resulting RGB bitmaps. | 25 // conversion and caching of resulting RGB bitmaps. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 VideoImageGenerator* accelerated_generator_; | 61 VideoImageGenerator* accelerated_generator_; |
| 62 base::TimeDelta accelerated_last_frame_timestamp_; | 62 base::TimeDelta accelerated_last_frame_timestamp_; |
| 63 base::DelayTimer<SkCanvasVideoRenderer> accelerated_frame_deleting_timer_; | 63 base::DelayTimer<SkCanvasVideoRenderer> accelerated_frame_deleting_timer_; |
| 64 | 64 |
| 65 DISALLOW_COPY_AND_ASSIGN(SkCanvasVideoRenderer); | 65 DISALLOW_COPY_AND_ASSIGN(SkCanvasVideoRenderer); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace media | 68 } // namespace media |
| 69 | 69 |
| 70 #endif // MEDIA_FILTERS_SKCANVAS_VIDEO_RENDERER_H_ | 70 #endif // MEDIA_FILTERS_SKCANVAS_VIDEO_RENDERER_H_ |
| OLD | NEW |