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

Unified Diff: media/base/time_source.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: Incorporating review comments(replacing all float playback_rate to double.) 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
Index: media/base/time_source.h
diff --git a/media/base/time_source.h b/media/base/time_source.h
index 71fe858e8c97eda36d605b73f6cbf5f1e39815ca..d025de2a6ccb53cdebee6b1f71dd78eab6b11c50 100644
--- a/media/base/time_source.h
+++ b/media/base/time_source.h
@@ -27,7 +27,7 @@ class MEDIA_EXPORT TimeSource {
// Updates the current playback rate. It is expected that values from
// CurrentMediaTime() will eventually reflect the new playback rate (e.g., the
// media time will advance at half speed if the rate was set to 0.5f).
- virtual void SetPlaybackRate(float playback_rate) = 0;
+ virtual void SetPlaybackRate(double playback_rate) = 0;
// Sets the media time to start ticking from. Only valid to call while the
// time source is not ticking.

Powered by Google App Engine
This is Rietveld 408576698