| 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_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 // point for when the mailbox was produced. | 341 // point for when the mailbox was produced. |
| 342 gpu::Mailbox texture_mailbox_; | 342 gpu::Mailbox texture_mailbox_; |
| 343 unsigned int texture_mailbox_sync_point_; | 343 unsigned int texture_mailbox_sync_point_; |
| 344 | 344 |
| 345 // Stream texture ID allocated to the video. | 345 // Stream texture ID allocated to the video. |
| 346 unsigned int stream_id_; | 346 unsigned int stream_id_; |
| 347 | 347 |
| 348 // Whether the mediaplayer is playing. | 348 // Whether the mediaplayer is playing. |
| 349 bool is_playing_; | 349 bool is_playing_; |
| 350 | 350 |
| 351 // Wether the mediaplayer has already started playing. |
| 352 bool playing_started_; |
| 353 |
| 351 // Whether media player needs to re-establish the surface texture peer. | 354 // Whether media player needs to re-establish the surface texture peer. |
| 352 bool needs_establish_peer_; | 355 bool needs_establish_peer_; |
| 353 | 356 |
| 354 // Whether |stream_texture_proxy_| is initialized. | 357 // Whether |stream_texture_proxy_| is initialized. |
| 355 bool stream_texture_proxy_initialized_; | 358 bool stream_texture_proxy_initialized_; |
| 356 | 359 |
| 357 // Whether the video size info is available. | 360 // Whether the video size info is available. |
| 358 bool has_size_info_; | 361 bool has_size_info_; |
| 359 | 362 |
| 360 // Whether the video metadata and info are available. | 363 // Whether the video metadata and info are available. |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 | 429 |
| 427 // The decryptor that manages decryption keys and decrypts encrypted frames. | 430 // The decryptor that manages decryption keys and decrypts encrypted frames. |
| 428 scoped_ptr<ProxyDecryptor> decryptor_; | 431 scoped_ptr<ProxyDecryptor> decryptor_; |
| 429 | 432 |
| 430 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 433 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 431 }; | 434 }; |
| 432 | 435 |
| 433 } // namespace content | 436 } // namespace content |
| 434 | 437 |
| 435 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 438 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |