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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 double mediaTimeForTimeValue(double timeValue) const override; | 128 double mediaTimeForTimeValue(double timeValue) const override; |
129 | 129 |
130 unsigned decodedFrameCount() const override; | 130 unsigned decodedFrameCount() const override; |
131 unsigned droppedFrameCount() const override; | 131 unsigned droppedFrameCount() const override; |
132 unsigned audioDecodedByteCount() const override; | 132 unsigned audioDecodedByteCount() const override; |
133 unsigned videoDecodedByteCount() const override; | 133 unsigned videoDecodedByteCount() const override; |
134 | 134 |
135 bool copyVideoTextureToPlatformTexture( | 135 bool copyVideoTextureToPlatformTexture( |
136 blink::WebGraphicsContext3D* web_graphics_context, | 136 blink::WebGraphicsContext3D* web_graphics_context, |
137 unsigned int texture, | 137 const CopyVideoTextureParams& params) override; |
138 unsigned int internal_format, | |
139 unsigned int type, | |
140 bool premultiply_alpha, | |
141 bool flip_y) override; | |
142 | 138 |
143 private: | 139 private: |
144 // The callback for VideoFrameProvider to signal a new frame is available. | 140 // The callback for VideoFrameProvider to signal a new frame is available. |
145 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); | 141 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); |
146 // Need repaint due to state change. | 142 // Need repaint due to state change. |
147 void RepaintInternal(); | 143 void RepaintInternal(); |
148 | 144 |
149 // The callback for source to report error. | 145 // The callback for source to report error. |
150 void OnSourceError(); | 146 void OnSourceError(); |
151 | 147 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 194 |
199 const std::string initial_audio_output_device_id_; | 195 const std::string initial_audio_output_device_id_; |
200 const url::Origin initial_security_origin_; | 196 const url::Origin initial_security_origin_; |
201 | 197 |
202 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 198 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
203 }; | 199 }; |
204 | 200 |
205 } // namespace content | 201 } // namespace content |
206 | 202 |
207 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 203 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
OLD | NEW |