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

Unified Diff: media/base/pipeline.h

Issue 21037: Almost complete implementation of the Chrome video renderer. Still needs to ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « chrome/renderer/media/video_renderer_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/pipeline.h
===================================================================
--- media/base/pipeline.h (revision 9480)
+++ media/base/pipeline.h (working copy)
@@ -70,10 +70,22 @@
// values for playback rate are >= 0.0f.
virtual float GetPlaybackRate() const = 0;
- // Gets the current pipeline time in microseconds. For a pipeline "time"
- // progresses from 0 to the end of the media.
+ // Gets the current pipeline time in microseconds. For a pipeline "time"
+ // progresses from 0 to the end of the media. This time base is updated
+ // by the audio renderer to allow for synchronization of audio and video.
+ // Note that a more accurate time may be obtained by calling the
+ // GetInterpolatedTime method which estimates the position of the audio
+ // device based on a combination of the last time the audio device reported
+ // it's position and the current system time.
virtual base::TimeDelta GetTime() const = 0;
+ // Gets the current pipeline time in microseconds. For a pipeline "time"
+ // progresses from 0 to the end of the media. Becuase this method provides
+ // an estimated time, it is possible that subsequent calls to this method will
+ // actually progress backwards slightly, so callers must not assume that this
+ // method will always return times larger than the last one.
+ virtual base::TimeDelta GetInterpolatedTime() const = 0;
+
// Gets the current error status for the pipeline. If the pipeline is
// operating correctly, this will return OK.
virtual PipelineError GetError() const = 0;
« no previous file with comments | « chrome/renderer/media/video_renderer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698