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

Unified Diff: media/base/time_delta_interpolator.h

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/renderer.h ('k') | media/base/time_delta_interpolator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/time_delta_interpolator.h
diff --git a/media/base/time_delta_interpolator.h b/media/base/time_delta_interpolator.h
index af7535da6f2673ff0a8a223ba45854cb22c2903e..7dbda69387bb1a9439d1a4997766abe0196854ff 100644
--- a/media/base/time_delta_interpolator.h
+++ b/media/base/time_delta_interpolator.h
@@ -42,7 +42,7 @@ class MEDIA_EXPORT TimeDeltaInterpolator {
// Sets a new rate at which to interpolate.
//
// |tick_clock| will be queried for a new reference time value.
- void SetPlaybackRate(float playback_rate);
+ void SetPlaybackRate(double playback_rate);
// Sets the two timestamps to interpolate between at |playback_rate_|.
// |upper_bound| must be greater or equal to |lower_bound|.
@@ -72,7 +72,7 @@ class MEDIA_EXPORT TimeDeltaInterpolator {
// |lower_bound_| and |upper_bound_|.
base::TimeTicks reference_;
- float playback_rate_;
+ double playback_rate_;
DISALLOW_COPY_AND_ASSIGN(TimeDeltaInterpolator);
};
« no previous file with comments | « media/base/renderer.h ('k') | media/base/time_delta_interpolator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698