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

Unified Diff: media/base/silent_sink_suspender.h

Issue 2567143002: media::SilentSinkSuspender should simulate |delay| and |delay_timestamp| (Closed)
Patch Set: media_perftests compilation fix Created 4 years 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
Index: media/base/silent_sink_suspender.h
diff --git a/media/base/silent_sink_suspender.h b/media/base/silent_sink_suspender.h
index 82da971a49e8e2a92e7eaa74b5354f660f444676..5fad2217bd841db3ee19864c2019df2affbc0ba9 100644
--- a/media/base/silent_sink_suspender.h
+++ b/media/base/silent_sink_suspender.h
@@ -103,6 +103,14 @@ class MEDIA_EXPORT SilentSinkSuspender
// on Android to save battery consumption.
base::CancelableCallback<void(bool)> sink_transition_callback_;
+ // Audio output delay at the moment when transition to |fake_sink_| starts.
+ base::TimeDelta latest_output_delay_;
+ // Audio output delay timestamp at the moment when transition to |fake_sink_|
+ // starts.
+ base::TimeTicks latest_output_delay_timestamp_;
+ // Time when transition to |fake_sink_| starts.
+ base::TimeTicks fake_sink_transition_time_;
+
DISALLOW_COPY_AND_ASSIGN(SilentSinkSuspender);
};

Powered by Google App Engine
This is Rietveld 408576698