| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 virtual float mediaTimeForTimeValue(float timeValue) const; | 172 virtual float mediaTimeForTimeValue(float timeValue) const; |
| 173 | 173 |
| 174 virtual unsigned decodedFrameCount() const; | 174 virtual unsigned decodedFrameCount() const; |
| 175 virtual unsigned droppedFrameCount() const; | 175 virtual unsigned droppedFrameCount() const; |
| 176 virtual unsigned audioDecodedByteCount() const; | 176 virtual unsigned audioDecodedByteCount() const; |
| 177 virtual unsigned videoDecodedByteCount() const; | 177 virtual unsigned videoDecodedByteCount() const; |
| 178 | 178 |
| 179 virtual WebKit::WebVideoFrame* getCurrentFrame(); | 179 virtual WebKit::WebVideoFrame* getCurrentFrame(); |
| 180 virtual void putCurrentFrame(WebKit::WebVideoFrame* web_video_frame); | 180 virtual void putCurrentFrame(WebKit::WebVideoFrame* web_video_frame); |
| 181 | 181 |
| 182 // TODO(acolwell): Uncomment once WebKit changes are checked in. | 182 virtual bool sourceAppend(const unsigned char* data, unsigned length); |
| 183 // https://bugs.webkit.org/show_bug.cgi?id=64731 | 183 virtual void sourceEndOfStream(EndOfStreamStatus status); |
| 184 //virtual bool sourceAppend(const unsigned char* data, unsigned length); | |
| 185 //virtual void sourceEndOfStream(EndOfStreamStatus status); | |
| 186 | 184 |
| 187 // As we are closing the tab or even the browser, |main_loop_| is destroyed | 185 // As we are closing the tab or even the browser, |main_loop_| is destroyed |
| 188 // even before this object gets destructed, so we need to know when | 186 // even before this object gets destructed, so we need to know when |
| 189 // |main_loop_| is being destroyed and we can stop posting repaint task | 187 // |main_loop_| is being destroyed and we can stop posting repaint task |
| 190 // to it. | 188 // to it. |
| 191 virtual void WillDestroyCurrentMessageLoop(); | 189 virtual void WillDestroyCurrentMessageLoop(); |
| 192 | 190 |
| 193 void Repaint(); | 191 void Repaint(); |
| 194 | 192 |
| 195 void OnPipelineInitialize(media::PipelineStatus status); | 193 void OnPipelineInitialize(media::PipelineStatus status); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 scoped_refptr<media::MediaLog> media_log_; | 268 scoped_refptr<media::MediaLog> media_log_; |
| 271 | 269 |
| 272 bool incremented_externally_allocated_memory_; | 270 bool incremented_externally_allocated_memory_; |
| 273 | 271 |
| 274 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 272 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 275 }; | 273 }; |
| 276 | 274 |
| 277 } // namespace webkit_glue | 275 } // namespace webkit_glue |
| 278 | 276 |
| 279 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ | 277 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |