Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Side by Side Diff: media/blink/webmediaplayer_impl.h

Issue 2818823002: [Media] Add a finch trial param for background MediaSource videos (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698