| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // The video renderer implementation to be use by the media pipeline. It lives | 5 // The video renderer implementation to be use by the media pipeline. It lives |
| 6 // inside video renderer thread and also WebKit's main thread. We need to be | 6 // inside video renderer thread and also WebKit's main thread. We need to be |
| 7 // extra careful about members shared by two different threads, especially | 7 // extra careful about members shared by two different threads, especially |
| 8 // video frame buffers. | 8 // video frame buffers. |
| 9 | 9 |
| 10 #ifndef WEBKIT_GLUE_MEDIA_VIDEO_RENDERER_IMPL_H_ | 10 #ifndef WEBKIT_GLUE_MEDIA_VIDEO_RENDERER_IMPL_H_ |
| 11 #define WEBKIT_GLUE_MEDIA_VIDEO_RENDERER_IMPL_H_ | 11 #define WEBKIT_GLUE_MEDIA_VIDEO_RENDERER_IMPL_H_ |
| 12 | 12 |
| 13 #include "gfx/rect.h" | |
| 14 #include "gfx/size.h" | |
| 15 #include "media/base/buffers.h" | 13 #include "media/base/buffers.h" |
| 16 #include "media/base/filters.h" | 14 #include "media/base/filters.h" |
| 17 #include "media/filters/video_renderer_base.h" | 15 #include "media/filters/video_renderer_base.h" |
| 18 #include "skia/ext/platform_canvas.h" | 16 #include "skia/ext/platform_canvas.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayer.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayer.h" |
| 18 #include "ui/gfx/rect.h" |
| 19 #include "ui/gfx/size.h" |
| 20 #include "webkit/glue/media/web_video_renderer.h" | 20 #include "webkit/glue/media/web_video_renderer.h" |
| 21 #include "webkit/glue/webmediaplayer_impl.h" | 21 #include "webkit/glue/webmediaplayer_impl.h" |
| 22 | 22 |
| 23 namespace webkit_glue { | 23 namespace webkit_glue { |
| 24 | 24 |
| 25 class VideoRendererImpl : public WebVideoRenderer { | 25 class VideoRendererImpl : public WebVideoRenderer { |
| 26 public: | 26 public: |
| 27 explicit VideoRendererImpl(bool pts_logging); | 27 explicit VideoRendererImpl(bool pts_logging); |
| 28 virtual ~VideoRendererImpl(); | 28 virtual ~VideoRendererImpl(); |
| 29 | 29 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 // Whether we're logging video presentation timestamps (PTS). | 86 // Whether we're logging video presentation timestamps (PTS). |
| 87 bool pts_logging_; | 87 bool pts_logging_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); | 89 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace webkit_glue | 92 } // namespace webkit_glue |
| 93 | 93 |
| 94 #endif // WEBKIT_GLUE_MEDIA_VIDEO_RENDERER_IMPL_H_ | 94 #endif // WEBKIT_GLUE_MEDIA_VIDEO_RENDERER_IMPL_H_ |
| OLD | NEW |