| 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 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. | 5 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. |
| 6 // It contains Pipeline which is the actual media player pipeline, it glues | 6 // It contains Pipeline 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 // Pipeline would creates multiple threads and access some public methods | 8 // Pipeline 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 virtual void setVolume(float volume); | 123 virtual void setVolume(float volume); |
| 124 virtual void setVisible(bool visible); | 124 virtual void setVisible(bool visible); |
| 125 virtual void setPreload(WebKit::WebMediaPlayer::Preload preload); | 125 virtual void setPreload(WebKit::WebMediaPlayer::Preload preload); |
| 126 virtual bool totalBytesKnown(); | 126 virtual bool totalBytesKnown(); |
| 127 virtual const WebKit::WebTimeRanges& buffered(); | 127 virtual const WebKit::WebTimeRanges& buffered(); |
| 128 virtual float maxTimeSeekable() const; | 128 virtual float maxTimeSeekable() const; |
| 129 | 129 |
| 130 // Methods for painting. | 130 // Methods for painting. |
| 131 virtual void setSize(const WebKit::WebSize& size); | 131 virtual void setSize(const WebKit::WebSize& size); |
| 132 | 132 |
| 133 #if WEBKIT_USING_SKIA | |
| 134 // This variant (without alpha) is just present during staging of this API | 133 // This variant (without alpha) is just present during staging of this API |
| 135 // change. Later we will again only have one virtual paint(). | 134 // change. Later we will again only have one virtual paint(). |
| 136 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); | 135 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); |
| 137 virtual void paint(WebKit::WebCanvas* canvas, | 136 virtual void paint(WebKit::WebCanvas* canvas, |
| 138 const WebKit::WebRect& rect, | 137 const WebKit::WebRect& rect, |
| 139 uint8_t alpha); | 138 uint8_t alpha); |
| 140 #else | |
| 141 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); | |
| 142 #endif | |
| 143 | 139 |
| 144 // True if the loaded media has a playable video/audio track. | 140 // True if the loaded media has a playable video/audio track. |
| 145 virtual bool hasVideo() const; | 141 virtual bool hasVideo() const; |
| 146 virtual bool hasAudio() const; | 142 virtual bool hasAudio() const; |
| 147 | 143 |
| 148 // Dimensions of the video. | 144 // Dimensions of the video. |
| 149 virtual WebKit::WebSize naturalSize() const; | 145 virtual WebKit::WebSize naturalSize() const; |
| 150 | 146 |
| 151 // Getters of playback state. | 147 // Getters of playback state. |
| 152 virtual bool paused() const; | 148 virtual bool paused() const; |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 bool incremented_externally_allocated_memory_; | 315 bool incremented_externally_allocated_memory_; |
| 320 | 316 |
| 321 WebKit::WebAudioSourceProvider* audio_source_provider_; | 317 WebKit::WebAudioSourceProvider* audio_source_provider_; |
| 322 | 318 |
| 323 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 319 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 324 }; | 320 }; |
| 325 | 321 |
| 326 } // namespace webkit_media | 322 } // namespace webkit_media |
| 327 | 323 |
| 328 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 324 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |