| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_GLUE_MEDIA_VIDEO_RENDERER_IMPL_H_ | 5 #ifndef WEBKIT_MEDIA_VIDEO_RENDERER_IMPL_H_ |
| 6 #define WEBKIT_GLUE_MEDIA_VIDEO_RENDERER_IMPL_H_ | 6 #define WEBKIT_MEDIA_VIDEO_RENDERER_IMPL_H_ |
| 7 | 7 |
| 8 #include "media/base/buffers.h" | 8 #include "media/base/buffers.h" |
| 9 #include "media/base/filters.h" | 9 #include "media/base/filters.h" |
| 10 #include "media/filters/video_renderer_base.h" | 10 #include "media/filters/video_renderer_base.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayer.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayer.h" |
| 12 #include "ui/gfx/size.h" | 12 #include "ui/gfx/size.h" |
| 13 #include "third_party/skia/include/core/SkBitmap.h" | 13 #include "third_party/skia/include/core/SkBitmap.h" |
| 14 #include "webkit/glue/media/web_video_renderer.h" | 14 #include "webkit/media/web_video_renderer.h" |
| 15 | 15 |
| 16 namespace webkit_glue { | 16 namespace webkit_media { |
| 17 | 17 |
| 18 // The video renderer implementation to be use by the media pipeline. It lives | 18 // The video renderer implementation to be use by the media pipeline. It lives |
| 19 // inside video renderer thread and also WebKit's main thread. We need to be | 19 // inside video renderer thread and also WebKit's main thread. We need to be |
| 20 // extra careful about members shared by two different threads, especially | 20 // extra careful about members shared by two different threads, especially |
| 21 // video frame buffers. | 21 // video frame buffers. |
| 22 class VideoRendererImpl : public WebVideoRenderer { | 22 class VideoRendererImpl : public WebVideoRenderer { |
| 23 public: | 23 public: |
| 24 explicit VideoRendererImpl(bool pts_logging); | 24 explicit VideoRendererImpl(bool pts_logging); |
| 25 virtual ~VideoRendererImpl(); | 25 virtual ~VideoRendererImpl(); |
| 26 | 26 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 // The natural size of the video. | 71 // The natural size of the video. |
| 72 gfx::Size natural_size_; | 72 gfx::Size natural_size_; |
| 73 | 73 |
| 74 // Whether we're logging video presentation timestamps (PTS). | 74 // Whether we're logging video presentation timestamps (PTS). |
| 75 bool pts_logging_; | 75 bool pts_logging_; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); | 77 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace webkit_glue | 80 } // namespace webkit_media |
| 81 | 81 |
| 82 #endif // WEBKIT_GLUE_MEDIA_VIDEO_RENDERER_IMPL_H_ | 82 #endif // WEBKIT_MEDIA_VIDEO_RENDERER_IMPL_H_ |
| OLD | NEW |