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 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 // when a preroll attempt began. | 674 // when a preroll attempt began. |
675 bool preroll_attempt_pending_; | 675 bool preroll_attempt_pending_; |
676 base::TimeTicks preroll_attempt_start_time_; | 676 base::TimeTicks preroll_attempt_start_time_; |
677 | 677 |
678 std::unique_ptr<base::TickClock> tick_clock_; | 678 std::unique_ptr<base::TickClock> tick_clock_; |
679 | 679 |
680 // Monitors the player events. | 680 // Monitors the player events. |
681 base::WeakPtr<MediaObserver> observer_; | 681 base::WeakPtr<MediaObserver> observer_; |
682 | 682 |
683 // The maximum video keyframe distance that allows triggering background | 683 // The maximum video keyframe distance that allows triggering background |
684 // playback optimizations. | 684 // playback optimizations (non-MSE). |
685 base::TimeDelta max_keyframe_distance_to_disable_background_video_; | 685 base::TimeDelta max_keyframe_distance_to_disable_background_video_; |
686 | 686 |
| 687 // The maximum video keyframe distance that allows triggering background |
| 688 // playback optimizations (MSE). |
| 689 base::TimeDelta max_keyframe_distance_to_disable_background_video_mse_; |
| 690 |
687 // When MSE memory pressure based garbage collection is enabled, the | 691 // When MSE memory pressure based garbage collection is enabled, the |
688 // |enable_instant_source_buffer_gc| controls whether the GC is done | 692 // |enable_instant_source_buffer_gc| controls whether the GC is done |
689 // immediately on memory pressure notification or during the next SourceBuffer | 693 // immediately on memory pressure notification or during the next SourceBuffer |
690 // append (slower, but MSE spec compliant). | 694 // append (slower, but MSE spec compliant). |
691 bool enable_instant_source_buffer_gc_ = false; | 695 bool enable_instant_source_buffer_gc_ = false; |
692 | 696 |
693 // Whether disabled the video track as an optimization. | 697 // Whether disabled the video track as an optimization. |
694 bool video_track_disabled_ = false; | 698 bool video_track_disabled_ = false; |
695 | 699 |
696 // Whether the pipeline is being resumed at the moment. | 700 // Whether the pipeline is being resumed at the moment. |
(...skipping 19 matching lines...) Expand all Loading... |
716 base::TimeDelta last_uploaded_frame_timestamp_; | 720 base::TimeDelta last_uploaded_frame_timestamp_; |
717 | 721 |
718 base::CancelableCallback<void(base::TimeTicks)> frame_time_report_cb_; | 722 base::CancelableCallback<void(base::TimeTicks)> frame_time_report_cb_; |
719 | 723 |
720 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 724 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
721 }; | 725 }; |
722 | 726 |
723 } // namespace media | 727 } // namespace media |
724 | 728 |
725 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 729 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |