OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // 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 // Methods called from WebKit's main thread: | 10 // Methods called from WebKit's main thread: |
11 // Paint() | 11 // Paint() |
12 // SetRect() | 12 // SetRect() |
13 | 13 |
14 #ifndef WEBKIT_GLUE_MEDIA_VIDEO_RENDERER_IMPL_H_ | 14 #ifndef WEBKIT_GLUE_MEDIA_VIDEO_RENDERER_IMPL_H_ |
15 #define WEBKIT_GLUE_MEDIA_VIDEO_RENDERER_IMPL_H_ | 15 #define WEBKIT_GLUE_MEDIA_VIDEO_RENDERER_IMPL_H_ |
16 | 16 |
17 #include "base/gfx/rect.h" | 17 #include "base/gfx/rect.h" |
18 #include "base/gfx/size.h" | 18 #include "base/gfx/size.h" |
19 #include "media/base/buffers.h" | 19 #include "media/base/buffers.h" |
20 #include "media/base/factory.h" | 20 #include "media/base/factory.h" |
21 #include "media/base/filters.h" | 21 #include "media/base/filters.h" |
22 #include "media/filters/video_renderer_base.h" | 22 #include "media/filters/video_renderer_base.h" |
23 #include "skia/ext/platform_canvas.h" | 23 #include "skia/ext/platform_canvas.h" |
24 #include "webkit/api/public/WebMediaPlayer.h" | 24 #include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayer.h" |
25 #include "webkit/glue/webmediaplayer_impl.h" | 25 #include "webkit/glue/webmediaplayer_impl.h" |
26 | 26 |
27 namespace webkit_glue { | 27 namespace webkit_glue { |
28 | 28 |
29 class VideoRendererImpl : public media::VideoRendererBase { | 29 class VideoRendererImpl : public media::VideoRendererBase { |
30 public: | 30 public: |
31 // Methods for painting called by the WebMediaPlayerImpl::Proxy | 31 // Methods for painting called by the WebMediaPlayerImpl::Proxy |
32 | 32 |
33 // This method is called with the same rect as the Paint method and could | 33 // This method is called with the same rect as the Paint method and could |
34 // be used by future implementations to implement an improved color space + | 34 // be used by future implementations to implement an improved color space + |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 // The size of the video. | 104 // The size of the video. |
105 gfx::Size video_size_; | 105 gfx::Size video_size_; |
106 | 106 |
107 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); | 107 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); |
108 }; | 108 }; |
109 | 109 |
110 } // namespace webkit_glue | 110 } // namespace webkit_glue |
111 | 111 |
112 #endif // WEBKIT_GLUE_MEDIA_VIDEO_RENDERER_IMPL_H_ | 112 #endif // WEBKIT_GLUE_MEDIA_VIDEO_RENDERER_IMPL_H_ |
OLD | NEW |