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 const CopyVideoTextureParams& params) override; | 131 unsigned int texture, |
| 132 unsigned int internal_format, |
| 133 unsigned int type, |
| 134 bool premultiply_alpha, |
| 135 bool flip_y) override; |
132 | 136 |
133 private: | 137 private: |
134 // The callback for VideoFrameProvider to signal a new frame is available. | 138 // The callback for VideoFrameProvider to signal a new frame is available. |
135 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); | 139 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); |
136 // Need repaint due to state change. | 140 // Need repaint due to state change. |
137 void RepaintInternal(); | 141 void RepaintInternal(); |
138 | 142 |
139 // The callback for source to report error. | 143 // The callback for source to report error. |
140 void OnSourceError(); | 144 void OnSourceError(); |
141 | 145 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 scoped_ptr<WebMediaPlayerMSCompositor> compositor_; | 189 scoped_ptr<WebMediaPlayerMSCompositor> compositor_; |
186 | 190 |
187 const scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; | 191 const scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; |
188 | 192 |
189 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 193 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
190 }; | 194 }; |
191 | 195 |
192 } // namespace content | 196 } // namespace content |
193 | 197 |
194 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 198 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
OLD | NEW |