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

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

Issue 2618883002: [Media, Video] Enable the video track for a new renderer. (Closed)
Patch Set: Immediate resume_cb_, fixed unittests Created 3 years, 11 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 | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | media/blink/webmediaplayer_impl.cc » ('J')
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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 bool is_suspended; 244 bool is_suspended;
245 }; 245 };
246 246
247 private: 247 private:
248 friend class WebMediaPlayerImplTest; 248 friend class WebMediaPlayerImplTest;
249 249
250 void EnableOverlay(); 250 void EnableOverlay();
251 void DisableOverlay(); 251 void DisableOverlay();
252 252
253 void OnPipelineSuspended(); 253 void OnPipelineSuspended();
254 void OnPipelineResumed();
254 void OnDemuxerOpened(); 255 void OnDemuxerOpened();
255 256
256 // Pipeline::Client overrides. 257 // Pipeline::Client overrides.
257 void OnError(PipelineStatus status) override; 258 void OnError(PipelineStatus status) override;
258 void OnEnded() override; 259 void OnEnded() override;
259 void OnMetadata(PipelineMetadata metadata) override; 260 void OnMetadata(PipelineMetadata metadata) override;
260 void OnBufferingStateChange(BufferingState state) override; 261 void OnBufferingStateChange(BufferingState state) override;
261 void OnDurationChange() override; 262 void OnDurationChange() override;
262 void OnAddTextTrack(const TextTrackConfig& config, 263 void OnAddTextTrack(const TextTrackConfig& config,
263 const AddTextTrackDoneCB& done_cb) override; 264 const AddTextTrackDoneCB& done_cb) override;
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 base::TimeTicks last_time_loading_progressed_; 593 base::TimeTicks last_time_loading_progressed_;
593 594
594 std::unique_ptr<base::TickClock> tick_clock_; 595 std::unique_ptr<base::TickClock> tick_clock_;
595 596
596 // Monitors the player events. 597 // Monitors the player events.
597 base::WeakPtr<MediaObserver> observer_; 598 base::WeakPtr<MediaObserver> observer_;
598 599
599 // Whether the player is currently in autoplay muted state. 600 // Whether the player is currently in autoplay muted state.
600 bool autoplay_muted_ = false; 601 bool autoplay_muted_ = false;
601 602
603 // Whether disabled the video track as an optimization.
604 bool video_track_disabled_ = false;
605
602 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 606 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
603 }; 607 };
604 608
605 } // namespace media 609 } // namespace media
606 610
607 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 611 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | media/blink/webmediaplayer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698