| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 // Callback responsible for determining if loading of media should be deferred | 335 // Callback responsible for determining if loading of media should be deferred |
| 336 // for external reasons; called during load(). | 336 // for external reasons; called during load(). |
| 337 media::WebMediaPlayerParams::DeferLoadCB defer_load_cb_; | 337 media::WebMediaPlayerParams::DeferLoadCB defer_load_cb_; |
| 338 | 338 |
| 339 // Save the list of buffered time ranges. | 339 // Save the list of buffered time ranges. |
| 340 blink::WebTimeRanges buffered_; | 340 blink::WebTimeRanges buffered_; |
| 341 | 341 |
| 342 // Size of the video. | 342 // Size of the video. |
| 343 blink::WebSize natural_size_; | 343 blink::WebSize natural_size_; |
| 344 | 344 |
| 345 // Size that has been sent to gpu::StreamTexture. | 345 // Size that has been sent to StreamTexture. |
| 346 blink::WebSize cached_stream_texture_size_; | 346 blink::WebSize cached_stream_texture_size_; |
| 347 | 347 |
| 348 // The video frame object used for rendering by the compositor. | 348 // The video frame object used for rendering by the compositor. |
| 349 scoped_refptr<media::VideoFrame> current_frame_; | 349 scoped_refptr<media::VideoFrame> current_frame_; |
| 350 base::Lock current_frame_lock_; | 350 base::Lock current_frame_lock_; |
| 351 | 351 |
| 352 base::ThreadChecker main_thread_checker_; | 352 base::ThreadChecker main_thread_checker_; |
| 353 | 353 |
| 354 // Message loop for media thread. | 354 // Message loop for media thread. |
| 355 const scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; | 355 const scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 | 517 |
| 518 // NOTE: Weak pointers must be invalidated before all other member variables. | 518 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 519 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 519 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
| 520 | 520 |
| 521 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 521 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 522 }; | 522 }; |
| 523 | 523 |
| 524 } // namespace content | 524 } // namespace content |
| 525 | 525 |
| 526 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 526 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |