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

Unified Diff: media/base/time_delta_interpolator.cc

Issue 1094783002: Switch to double for time calculations using playback rate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Making changes at chromecast side to fix trybots Created 5 years, 8 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 | « media/base/time_delta_interpolator.h ('k') | media/base/time_delta_interpolator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/time_delta_interpolator.cc
diff --git a/media/base/time_delta_interpolator.cc b/media/base/time_delta_interpolator.cc
index 11ba1cd0858c190ff392ea08daca7c91a2bbcf7a..acff37e72ebdf9479e8b78cffe4f9b6798b96d55 100644
--- a/media/base/time_delta_interpolator.cc
+++ b/media/base/time_delta_interpolator.cc
@@ -16,7 +16,7 @@ TimeDeltaInterpolator::TimeDeltaInterpolator(base::TickClock* tick_clock)
: tick_clock_(tick_clock),
interpolating_(false),
upper_bound_(kNoTimestamp()),
- playback_rate_(1.0f) {
+ playback_rate_(1.0) {
DCHECK(tick_clock_);
}
@@ -37,7 +37,7 @@ base::TimeDelta TimeDeltaInterpolator::StopInterpolating() {
return lower_bound_;
}
-void TimeDeltaInterpolator::SetPlaybackRate(float playback_rate) {
+void TimeDeltaInterpolator::SetPlaybackRate(double playback_rate) {
lower_bound_ = GetInterpolatedTime();
reference_ = tick_clock_->NowTicks();
playback_rate_ = playback_rate;
« no previous file with comments | « media/base/time_delta_interpolator.h ('k') | media/base/time_delta_interpolator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698