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

Unified Diff: media/mojo/clients/mojo_renderer.cc

Issue 2366373003: Not for submission. fastSeek prototype. (Closed)
Patch Set: 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/mojo/clients/mojo_renderer.h ('k') | media/renderers/audio_renderer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/clients/mojo_renderer.cc
diff --git a/media/mojo/clients/mojo_renderer.cc b/media/mojo/clients/mojo_renderer.cc
index 84e6acc0f8ed169b6086f5063cd11fdc1ddd4278..f609e785d8940480503379574705e743a7abe339 100644
--- a/media/mojo/clients/mojo_renderer.cc
+++ b/media/mojo/clients/mojo_renderer.cc
@@ -185,18 +185,19 @@ void MojoRenderer::Flush(const base::Closure& flush_cb) {
base::Bind(&MojoRenderer::OnFlushed, base::Unretained(this)));
}
-void MojoRenderer::StartPlayingFrom(base::TimeDelta time) {
- DVLOG(2) << __FUNCTION__ << "(" << time << ")";
+void MojoRenderer::StartPlayingFrom(StreamPosition position) {
+ DVLOG(2) << __FUNCTION__ << "(" << ToString(position) << ")";
DCHECK(task_runner_->BelongsToCurrentThread());
DCHECK(remote_renderer_.is_bound());
{
base::AutoLock auto_lock(lock_);
- media_time_interpolator_.SetBounds(time, time, media_clock_.NowTicks());
+ media_time_interpolator_.SetBounds(position.time, position.time,
+ media_clock_.NowTicks());
media_time_interpolator_.StartInterpolating();
}
- remote_renderer_->StartPlayingFrom(time);
+ remote_renderer_->StartPlayingFrom(position.time);
}
void MojoRenderer::SetPlaybackRate(double playback_rate) {
« no previous file with comments | « media/mojo/clients/mojo_renderer.h ('k') | media/renderers/audio_renderer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698