| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #include "media/blink/multibuffer_data_source.h" | 37 #include "media/blink/multibuffer_data_source.h" |
| 38 #include "media/blink/video_frame_compositor.h" | 38 #include "media/blink/video_frame_compositor.h" |
| 39 #include "media/blink/webmediaplayer_delegate.h" | 39 #include "media/blink/webmediaplayer_delegate.h" |
| 40 #include "media/blink/webmediaplayer_params.h" | 40 #include "media/blink/webmediaplayer_params.h" |
| 41 #include "media/blink/webmediaplayer_util.h" | 41 #include "media/blink/webmediaplayer_util.h" |
| 42 #include "media/filters/pipeline_controller.h" | 42 #include "media/filters/pipeline_controller.h" |
| 43 #include "media/renderers/skcanvas_video_renderer.h" | 43 #include "media/renderers/skcanvas_video_renderer.h" |
| 44 #include "third_party/WebKit/public/platform/WebAudioSourceProvider.h" | 44 #include "third_party/WebKit/public/platform/WebAudioSourceProvider.h" |
| 45 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h" | 45 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h" |
| 46 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" | 46 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" |
| 47 #include "third_party/WebKit/public/platform/WebVideoSurfaceLayerBridge.h" |
| 47 #include "url/gurl.h" | 48 #include "url/gurl.h" |
| 48 | 49 |
| 49 #if defined(OS_ANDROID) // WMPI_CAST | 50 #if defined(OS_ANDROID) // WMPI_CAST |
| 50 // Delete this file when WMPI_CAST is no longer needed. | 51 // Delete this file when WMPI_CAST is no longer needed. |
| 51 #include "media/blink/webmediaplayer_cast_android.h" | 52 #include "media/blink/webmediaplayer_cast_android.h" |
| 52 #endif | 53 #endif |
| 53 | 54 |
| 54 namespace blink { | 55 namespace blink { |
| 55 class WebLocalFrame; | 56 class WebLocalFrame; |
| 56 class WebMediaPlayerClient; | 57 class WebMediaPlayerClient; |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 // Used to track loading progress, used by IsPrerollAttemptNeeded(). | 715 // Used to track loading progress, used by IsPrerollAttemptNeeded(). |
| 715 // |preroll_attempt_pending_| indicates that the clock has been reset | 716 // |preroll_attempt_pending_| indicates that the clock has been reset |
| 716 // (awaiting a resume to start), while |preroll_attempt_start_time_| tracks | 717 // (awaiting a resume to start), while |preroll_attempt_start_time_| tracks |
| 717 // when a preroll attempt began. | 718 // when a preroll attempt began. |
| 718 bool preroll_attempt_pending_; | 719 bool preroll_attempt_pending_; |
| 719 base::TimeTicks preroll_attempt_start_time_; | 720 base::TimeTicks preroll_attempt_start_time_; |
| 720 | 721 |
| 721 // Monitors the player events. | 722 // Monitors the player events. |
| 722 base::WeakPtr<MediaObserver> observer_; | 723 base::WeakPtr<MediaObserver> observer_; |
| 723 | 724 |
| 725 // Obtains and maintains SurfaceIds. |
| 726 std::unique_ptr<blink::WebVideoSurfaceLayerBridge> bridge_; |
| 727 |
| 724 // The maximum video keyframe distance that allows triggering background | 728 // The maximum video keyframe distance that allows triggering background |
| 725 // playback optimizations (non-MSE). | 729 // playback optimizations (non-MSE). |
| 726 base::TimeDelta max_keyframe_distance_to_disable_background_video_; | 730 base::TimeDelta max_keyframe_distance_to_disable_background_video_; |
| 727 | 731 |
| 728 // The maximum video keyframe distance that allows triggering background | 732 // The maximum video keyframe distance that allows triggering background |
| 729 // playback optimizations (MSE). | 733 // playback optimizations (MSE). |
| 730 base::TimeDelta max_keyframe_distance_to_disable_background_video_mse_; | 734 base::TimeDelta max_keyframe_distance_to_disable_background_video_mse_; |
| 731 | 735 |
| 732 // When MSE memory pressure based garbage collection is enabled, the | 736 // When MSE memory pressure based garbage collection is enabled, the |
| 733 // |enable_instant_source_buffer_gc| controls whether the GC is done | 737 // |enable_instant_source_buffer_gc| controls whether the GC is done |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 OverlayInfo::RoutingToken overlay_routing_token_; | 793 OverlayInfo::RoutingToken overlay_routing_token_; |
| 790 | 794 |
| 791 OverlayInfo overlay_info_; | 795 OverlayInfo overlay_info_; |
| 792 | 796 |
| 793 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 797 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 794 }; | 798 }; |
| 795 | 799 |
| 796 } // namespace media | 800 } // namespace media |
| 797 | 801 |
| 798 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 802 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |