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 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. | 5 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. |
6 // It contains PipelineImpl which is the actual media player pipeline, it glues | 6 // It contains PipelineImpl which is the actual media player pipeline, it glues |
7 // the media player pipeline, data source, audio renderer and renderer. | 7 // the media player pipeline, data source, audio renderer and renderer. |
8 // PipelineImpl would creates multiple threads and access some public methods | 8 // PipelineImpl would creates multiple threads and access some public methods |
9 // of this class, so we need to be extra careful about concurrent access of | 9 // of this class, so we need to be extra careful about concurrent access of |
10 // methods and members. | 10 // methods and members. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 public: | 95 public: |
96 Proxy(MessageLoop* render_loop, | 96 Proxy(MessageLoop* render_loop, |
97 WebMediaPlayerImpl* webmediaplayer); | 97 WebMediaPlayerImpl* webmediaplayer); |
98 | 98 |
99 // Methods for Filter -> WebMediaPlayerImpl communication. | 99 // Methods for Filter -> WebMediaPlayerImpl communication. |
100 void Repaint(); | 100 void Repaint(); |
101 void SetVideoRenderer(scoped_refptr<WebVideoRenderer> video_renderer); | 101 void SetVideoRenderer(scoped_refptr<WebVideoRenderer> video_renderer); |
102 WebDataSourceBuildObserverHack* GetBuildObserver(); | 102 WebDataSourceBuildObserverHack* GetBuildObserver(); |
103 | 103 |
104 // Methods for WebMediaPlayerImpl -> Filter communication. | 104 // Methods for WebMediaPlayerImpl -> Filter communication. |
105 void Paint(skia::PlatformCanvas* canvas, const gfx::Rect& dest_rect); | 105 void Paint(SkCanvas* canvas, const gfx::Rect& dest_rect); |
106 void SetSize(const gfx::Rect& rect); | 106 void SetSize(const gfx::Rect& rect); |
107 void Detach(); | 107 void Detach(); |
108 void GetCurrentFrame(scoped_refptr<media::VideoFrame>* frame_out); | 108 void GetCurrentFrame(scoped_refptr<media::VideoFrame>* frame_out); |
109 void PutCurrentFrame(scoped_refptr<media::VideoFrame> frame); | 109 void PutCurrentFrame(scoped_refptr<media::VideoFrame> frame); |
110 bool HasSingleOrigin(); | 110 bool HasSingleOrigin(); |
111 void AbortDataSources(); | 111 void AbortDataSources(); |
112 | 112 |
113 // Methods for PipelineImpl -> WebMediaPlayerImpl communication. | 113 // Methods for PipelineImpl -> WebMediaPlayerImpl communication. |
114 void PipelineInitializationCallback(media::PipelineStatus status); | 114 void PipelineInitializationCallback(media::PipelineStatus status); |
115 void PipelineSeekCallback(media::PipelineStatus status); | 115 void PipelineSeekCallback(media::PipelineStatus status); |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 #if WEBKIT_USING_CG | 327 #if WEBKIT_USING_CG |
328 scoped_ptr<skia::PlatformCanvas> skia_canvas_; | 328 scoped_ptr<skia::PlatformCanvas> skia_canvas_; |
329 #endif | 329 #endif |
330 | 330 |
331 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 331 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
332 }; | 332 }; |
333 | 333 |
334 } // namespace webkit_glue | 334 } // namespace webkit_glue |
335 | 335 |
336 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ | 336 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |