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 | |
132 virtual bool copyVideoTextureToPlatformTexture( | 131 virtual bool copyVideoTextureToPlatformTexture( |
133 blink::WebGraphicsContext3D* web_graphics_context, | 132 blink::WebGraphicsContext3D* web_graphics_context, |
134 unsigned int texture, | 133 unsigned int texture, |
135 unsigned int level, | 134 unsigned int level, |
136 unsigned int internal_format, | 135 unsigned int internal_format, |
137 unsigned int type, | 136 unsigned int type, |
138 bool premultiply_alpha, | 137 bool premultiply_alpha, |
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); | 138 bool flip_y); |
147 | 139 |
148 virtual blink::WebAudioSourceProvider* audioSourceProvider(); | 140 virtual blink::WebAudioSourceProvider* audioSourceProvider(); |
149 | 141 |
150 virtual MediaKeyException generateKeyRequest( | 142 virtual MediaKeyException generateKeyRequest( |
151 const blink::WebString& key_system, | 143 const blink::WebString& key_system, |
152 const unsigned char* init_data, | 144 const unsigned char* init_data, |
153 unsigned init_data_length); | 145 unsigned init_data_length); |
154 | 146 |
155 virtual MediaKeyException addKey(const blink::WebString& key_system, | 147 virtual MediaKeyException addKey(const blink::WebString& key_system, |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 EncryptedMediaPlayerSupport encrypted_media_support_; | 314 EncryptedMediaPlayerSupport encrypted_media_support_; |
323 | 315 |
324 scoped_ptr<RendererFactory> renderer_factory_; | 316 scoped_ptr<RendererFactory> renderer_factory_; |
325 | 317 |
326 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 318 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
327 }; | 319 }; |
328 | 320 |
329 } // namespace media | 321 } // namespace media |
330 | 322 |
331 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 323 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |