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 MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 virtual bool hasSingleSecurityOrigin() const; | 121 virtual bool hasSingleSecurityOrigin() const; |
122 virtual bool didPassCORSAccessCheck() const; | 122 virtual bool didPassCORSAccessCheck() const; |
123 | 123 |
124 virtual double mediaTimeForTimeValue(double timeValue) const; | 124 virtual double mediaTimeForTimeValue(double timeValue) const; |
125 | 125 |
126 virtual unsigned decodedFrameCount() const; | 126 virtual unsigned decodedFrameCount() const; |
127 virtual unsigned droppedFrameCount() const; | 127 virtual unsigned droppedFrameCount() const; |
128 virtual unsigned audioDecodedByteCount() const; | 128 virtual unsigned audioDecodedByteCount() const; |
129 virtual unsigned videoDecodedByteCount() const; | 129 virtual unsigned videoDecodedByteCount() const; |
130 | 130 |
| 131 // TODO(dshwang): remove |level|. crbug.com/443151 |
131 virtual bool copyVideoTextureToPlatformTexture( | 132 virtual bool copyVideoTextureToPlatformTexture( |
132 blink::WebGraphicsContext3D* web_graphics_context, | 133 blink::WebGraphicsContext3D* web_graphics_context, |
133 unsigned int texture, | 134 unsigned int texture, |
134 unsigned int level, | 135 unsigned int level, |
135 unsigned int internal_format, | 136 unsigned int internal_format, |
136 unsigned int type, | 137 unsigned int type, |
137 bool premultiply_alpha, | 138 bool premultiply_alpha, |
138 bool flip_y); | 139 bool flip_y); |
| 140 virtual bool copyVideoTextureToPlatformTexture( |
| 141 blink::WebGraphicsContext3D* web_graphics_context, |
| 142 unsigned int texture, |
| 143 unsigned int internal_format, |
| 144 unsigned int type, |
| 145 bool premultiply_alpha, |
| 146 bool flip_y); |
139 | 147 |
140 virtual blink::WebAudioSourceProvider* audioSourceProvider(); | 148 virtual blink::WebAudioSourceProvider* audioSourceProvider(); |
141 | 149 |
142 virtual MediaKeyException generateKeyRequest( | 150 virtual MediaKeyException generateKeyRequest( |
143 const blink::WebString& key_system, | 151 const blink::WebString& key_system, |
144 const unsigned char* init_data, | 152 const unsigned char* init_data, |
145 unsigned init_data_length); | 153 unsigned init_data_length); |
146 | 154 |
147 virtual MediaKeyException addKey(const blink::WebString& key_system, | 155 virtual MediaKeyException addKey(const blink::WebString& key_system, |
148 const unsigned char* key, | 156 const unsigned char* key, |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 EncryptedMediaPlayerSupport encrypted_media_support_; | 322 EncryptedMediaPlayerSupport encrypted_media_support_; |
315 | 323 |
316 scoped_ptr<RendererFactory> renderer_factory_; | 324 scoped_ptr<RendererFactory> renderer_factory_; |
317 | 325 |
318 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 326 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
319 }; | 327 }; |
320 | 328 |
321 } // namespace media | 329 } // namespace media |
322 | 330 |
323 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 331 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |