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

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

Issue 2697123002: [Media, Video] Update WMPI when the pipeline gets a new average keyframe distance. (Closed)
Patch Set: Created 3 years, 10 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 | « media/base/pipeline_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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 void OnError(PipelineStatus status) override; 257 void OnError(PipelineStatus status) override;
258 void OnEnded() override; 258 void OnEnded() override;
259 void OnMetadata(PipelineMetadata metadata) override; 259 void OnMetadata(PipelineMetadata metadata) override;
260 void OnBufferingStateChange(BufferingState state) override; 260 void OnBufferingStateChange(BufferingState state) override;
261 void OnDurationChange() override; 261 void OnDurationChange() override;
262 void OnAddTextTrack(const TextTrackConfig& config, 262 void OnAddTextTrack(const TextTrackConfig& config,
263 const AddTextTrackDoneCB& done_cb) override; 263 const AddTextTrackDoneCB& done_cb) override;
264 void OnWaitingForDecryptionKey() override; 264 void OnWaitingForDecryptionKey() override;
265 void OnVideoNaturalSizeChange(const gfx::Size& size) override; 265 void OnVideoNaturalSizeChange(const gfx::Size& size) override;
266 void OnVideoOpacityChange(bool opaque) override; 266 void OnVideoOpacityChange(bool opaque) override;
267 void OnVideoAverageKeyframeDistanceUpdate() override;
267 268
268 // Actually seek. Avoids causing |should_notify_time_changed_| to be set when 269 // Actually seek. Avoids causing |should_notify_time_changed_| to be set when
269 // |time_updated| is false. 270 // |time_updated| is false.
270 void DoSeek(base::TimeDelta time, bool time_updated); 271 void DoSeek(base::TimeDelta time, bool time_updated);
271 272
272 // Called after |defer_load_cb_| has decided to allow the load. If 273 // Called after |defer_load_cb_| has decided to allow the load. If
273 // |defer_load_cb_| is null this is called immediately. 274 // |defer_load_cb_| is null this is called immediately.
274 void DoLoad(LoadType load_type, 275 void DoLoad(LoadType load_type,
275 const blink::WebURL& url, 276 const blink::WebURL& url,
276 CORSMode cors_mode); 277 CORSMode cors_mode);
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 683
683 // Pipeline media duration overridden by tests. 684 // Pipeline media duration overridden by tests.
684 base::Optional<base::TimeDelta> pipeline_media_duration_for_test_; 685 base::Optional<base::TimeDelta> pipeline_media_duration_for_test_;
685 686
686 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 687 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
687 }; 688 };
688 689
689 } // namespace media 690 } // namespace media
690 691
691 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 692 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « media/base/pipeline_impl.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698