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

Unified Diff: media/blink/webmediaplayer_impl.h

Issue 2477323003: Stop suspending the pipeline before HaveFutureData while decoding (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/blink/webmediaplayer_delegate.h ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_impl.h
diff --git a/media/blink/webmediaplayer_impl.h b/media/blink/webmediaplayer_impl.h
index b6a359cdfd3dfcfbc44d029edbb136f48679d2a8..8dabc8612d3e5e57e6b2ebdb669b2b3110034008 100644
--- a/media/blink/webmediaplayer_impl.h
+++ b/media/blink/webmediaplayer_impl.h
@@ -18,6 +18,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/threading/thread.h"
+#include "base/time/default_tick_clock.h"
#include "base/timer/elapsed_timer.h"
#include "base/timer/timer.h"
#include "build/build_config.h"
@@ -185,7 +186,7 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
// WebMediaPlayerDelegate::Observer implementation.
void OnHidden() override;
void OnShown() override;
- void OnSuspendRequested(bool must_suspend) override;
+ bool OnSuspendRequested(bool must_suspend) override;
void OnPlay() override;
void OnPause() override;
void OnVolumeMultiplierUpdate(double multiplier) override;
@@ -554,6 +555,11 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
int underflow_count_;
std::unique_ptr<base::ElapsedTimer> underflow_timer_;
+ // The last time didLoadingProgress() returned true.
+ base::TimeTicks last_time_loading_progressed_;
+
+ std::unique_ptr<base::TickClock> tick_clock_;
+
// Whether the player is currently in autoplay muted state.
bool autoplay_muted_ = false;
« no previous file with comments | « media/blink/webmediaplayer_delegate.h ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698