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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 virtual bool hasSingleSecurityOrigin() const; | 128 virtual bool hasSingleSecurityOrigin() const; |
129 virtual bool didPassCORSAccessCheck() const; | 129 virtual bool didPassCORSAccessCheck() const; |
130 | 130 |
131 virtual double mediaTimeForTimeValue(double timeValue) const; | 131 virtual double mediaTimeForTimeValue(double timeValue) const; |
132 | 132 |
133 virtual unsigned decodedFrameCount() const; | 133 virtual unsigned decodedFrameCount() const; |
134 virtual unsigned droppedFrameCount() const; | 134 virtual unsigned droppedFrameCount() const; |
135 virtual unsigned audioDecodedByteCount() const; | 135 virtual unsigned audioDecodedByteCount() const; |
136 virtual unsigned videoDecodedByteCount() const; | 136 virtual unsigned videoDecodedByteCount() const; |
137 | 137 |
138 bool copyVideoTextureToPlatformTexture( | 138 // TODO(dshwang): remove it. virtual trick allows to remove it in blink. |
| 139 // crbug.com/504773 |
| 140 virtual bool copyVideoTextureToPlatformTexture( |
139 blink::WebGraphicsContext3D* web_graphics_context, | 141 blink::WebGraphicsContext3D* web_graphics_context, |
140 unsigned int texture, | 142 unsigned int texture, |
141 unsigned int internal_format, | 143 unsigned int internal_format, |
142 unsigned int type, | 144 unsigned int type, |
143 bool premultiply_alpha, | 145 bool premultiply_alpha, |
| 146 bool flip_y); |
| 147 |
| 148 bool copyVideoTextureToPlatformTexture( |
| 149 blink::WebGraphicsContext3D* web_graphics_context, |
| 150 unsigned int target, |
| 151 unsigned int texture, |
| 152 unsigned int internal_format, |
| 153 unsigned int type, |
| 154 int level, |
| 155 bool premultiply_alpha, |
| 156 bool flip_y) override; |
| 157 bool copyVideoSubTextureToPlatformTexture( |
| 158 blink::WebGraphicsContext3D* web_graphics_context, |
| 159 unsigned int target, |
| 160 unsigned int texture, |
| 161 int level, |
| 162 int xoffset, |
| 163 int yoffset, |
| 164 bool premultiply_alpha, |
144 bool flip_y) override; | 165 bool flip_y) override; |
145 | 166 |
146 virtual blink::WebAudioSourceProvider* audioSourceProvider(); | 167 virtual blink::WebAudioSourceProvider* audioSourceProvider(); |
147 | 168 |
148 virtual MediaKeyException generateKeyRequest( | 169 virtual MediaKeyException generateKeyRequest( |
149 const blink::WebString& key_system, | 170 const blink::WebString& key_system, |
150 const unsigned char* init_data, | 171 const unsigned char* init_data, |
151 unsigned init_data_length); | 172 unsigned init_data_length); |
152 | 173 |
153 virtual MediaKeyException addKey(const blink::WebString& key_system, | 174 virtual MediaKeyException addKey(const blink::WebString& key_system, |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_; | 352 scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_; |
332 | 353 |
333 scoped_ptr<RendererFactory> renderer_factory_; | 354 scoped_ptr<RendererFactory> renderer_factory_; |
334 | 355 |
335 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 356 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
336 }; | 357 }; |
337 | 358 |
338 } // namespace media | 359 } // namespace media |
339 | 360 |
340 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 361 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |