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

Unified Diff: media/base/wall_clock_time_source.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/wall_clock_time_source.h ('k') | media/blink/buffered_data_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/wall_clock_time_source.cc
diff --git a/media/base/wall_clock_time_source.cc b/media/base/wall_clock_time_source.cc
index d8325464c1038ae154fa8ad1985ece3e4f0378f0..24aed49bde2161ba51273d6f7f54d913d0fc2845 100644
--- a/media/base/wall_clock_time_source.cc
+++ b/media/base/wall_clock_time_source.cc
@@ -12,7 +12,7 @@ namespace media {
WallClockTimeSource::WallClockTimeSource()
: tick_clock_(new base::DefaultTickClock()),
ticking_(false),
- playback_rate_(1.0f) {
+ playback_rate_(1.0) {
}
WallClockTimeSource::~WallClockTimeSource() {
@@ -35,7 +35,7 @@ void WallClockTimeSource::StopTicking() {
reference_wall_ticks_ = tick_clock_->NowTicks();
}
-void WallClockTimeSource::SetPlaybackRate(float playback_rate) {
+void WallClockTimeSource::SetPlaybackRate(double playback_rate) {
DVLOG(1) << __FUNCTION__ << "(" << playback_rate << ")";
base::AutoLock auto_lock(lock_);
// Estimate current media time using old rate to use as a new base time for
« no previous file with comments | « media/base/wall_clock_time_source.h ('k') | media/blink/buffered_data_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698