| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 double mediaTimeForTimeValue(double timeValue) const override; | 122 double mediaTimeForTimeValue(double timeValue) const override; |
| 123 | 123 |
| 124 unsigned decodedFrameCount() const override; | 124 unsigned decodedFrameCount() const override; |
| 125 unsigned droppedFrameCount() const override; | 125 unsigned droppedFrameCount() const override; |
| 126 unsigned audioDecodedByteCount() const override; | 126 unsigned audioDecodedByteCount() const override; |
| 127 unsigned videoDecodedByteCount() const override; | 127 unsigned videoDecodedByteCount() const override; |
| 128 | 128 |
| 129 bool copyVideoTextureToPlatformTexture( | 129 bool copyVideoTextureToPlatformTexture( |
| 130 blink::WebGraphicsContext3D* web_graphics_context, | 130 blink::WebGraphicsContext3D* web_graphics_context, |
| 131 unsigned int texture, | 131 const CopyVideoTextureParams& params) override; |
| 132 unsigned int internal_format, | |
| 133 unsigned int type, | |
| 134 bool premultiply_alpha, | |
| 135 bool flip_y) override; | |
| 136 | 132 |
| 137 private: | 133 private: |
| 138 // The callback for VideoFrameProvider to signal a new frame is available. | 134 // The callback for VideoFrameProvider to signal a new frame is available. |
| 139 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); | 135 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); |
| 140 // Need repaint due to state change. | 136 // Need repaint due to state change. |
| 141 void RepaintInternal(); | 137 void RepaintInternal(); |
| 142 | 138 |
| 143 // The callback for source to report error. | 139 // The callback for source to report error. |
| 144 void OnSourceError(); | 140 void OnSourceError(); |
| 145 | 141 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 scoped_ptr<WebMediaPlayerMSCompositor> compositor_; | 185 scoped_ptr<WebMediaPlayerMSCompositor> compositor_; |
| 190 | 186 |
| 191 const scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; | 187 const scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; |
| 192 | 188 |
| 193 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 189 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
| 194 }; | 190 }; |
| 195 | 191 |
| 196 } // namespace content | 192 } // namespace content |
| 197 | 193 |
| 198 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 194 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| OLD | NEW |