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

Unified Diff: media/audio/clockless_audio_sink.cc

Issue 864943002: Replaces instances of the deprecated TimeTicks::HighResNow() with TimeTicks::Now(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More changes based on review comments. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « jingle/glue/pseudotcp_adapter_unittest.cc ('k') | media/base/audio_bus_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/clockless_audio_sink.cc
diff --git a/media/audio/clockless_audio_sink.cc b/media/audio/clockless_audio_sink.cc
index 88e25b8af8db6c70912b11dca429d54f20c21e9e..77f7057119a1b424da9c7945db5af1225dbde430 100644
--- a/media/audio/clockless_audio_sink.cc
+++ b/media/audio/clockless_audio_sink.cc
@@ -44,10 +44,10 @@ class ClocklessAudioSinkThread : public base::DelegateSimpleThread::Delegate {
base::PlatformThread::YieldCurrentThread();
} else if (start.is_null()) {
// First time we processed some audio, so record the starting time.
- start = base::TimeTicks::HighResNow();
+ start = base::TimeTicks::Now();
} else {
// Keep track of the last time data was rendered.
- playback_time_ = base::TimeTicks::HighResNow() - start;
+ playback_time_ = base::TimeTicks::Now() - start;
}
}
}
« no previous file with comments | « jingle/glue/pseudotcp_adapter_unittest.cc ('k') | media/base/audio_bus_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698