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

Unified Diff: media/filters/audio_renderer_impl.h

Issue 380893002: Use base::TickClock in media::AudioRendererImpl instead of a callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove now_cb_ entirely Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/filters/audio_renderer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_renderer_impl.h
diff --git a/media/filters/audio_renderer_impl.h b/media/filters/audio_renderer_impl.h
index 2e29a9e82110adce8bccd546adcb3992a1323247..cc06fa3bf58151d6225a770f4b270bf879802000 100644
--- a/media/filters/audio_renderer_impl.h
+++ b/media/filters/audio_renderer_impl.h
@@ -80,12 +80,6 @@ class MEDIA_EXPORT AudioRendererImpl
virtual void StartPlayingFrom(base::TimeDelta timestamp) OVERRIDE;
virtual void SetVolume(float volume) OVERRIDE;
- // Allows injection of a custom time callback for non-realtime testing.
- typedef base::Callback<base::TimeTicks()> NowCB;
- void set_now_cb_for_testing(const NowCB& now_cb) {
- now_cb_ = now_cb;
- }
-
private:
friend class AudioRendererImplTest;
@@ -221,9 +215,6 @@ class MEDIA_EXPORT AudioRendererImpl
// Callback provided to Flush().
base::Closure flush_cb_;
- // Typically calls base::TimeTicks::Now() but can be overridden by a test.
- NowCB now_cb_;
-
// After Initialize() has completed, all variables below must be accessed
// under |lock_|. ------------------------------------------------------------
base::Lock lock_;
« no previous file with comments | « no previous file | media/filters/audio_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698