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

Unified Diff: media/base/time_delta_interpolator.cc

Issue 2239243002: Interpolate media time for mojo rendering pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moves media-time clamping to PipelineImpl Created 4 years, 3 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 38eb5b3b6f4ed34d3222201a3935e1c1f75c16f6..33e746751a823bf6e2b56bfbba40fd6840702379 100644
--- a/media/base/time_delta_interpolator.cc
+++ b/media/base/time_delta_interpolator.cc
@@ -46,13 +46,14 @@ void TimeDeltaInterpolator::SetPlaybackRate(double playback_rate) {
}
void TimeDeltaInterpolator::SetBounds(base::TimeDelta lower_bound,
- base::TimeDelta upper_bound) {
+ base::TimeDelta upper_bound,
+ base::TimeTicks capture_time) {
DCHECK(lower_bound <= upper_bound);
DCHECK(lower_bound != kNoTimestamp);
lower_bound_ = std::max(base::TimeDelta(), lower_bound);
upper_bound_ = std::max(base::TimeDelta(), upper_bound);
- reference_ = tick_clock_->NowTicks();
+ reference_ = capture_time;
}
void TimeDeltaInterpolator::SetUpperBound(base::TimeDelta upper_bound) {
« 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