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

Unified Diff: media/base/time_source.h

Issue 534073002: Switch to using media::TimeSource inside media::RendererImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: media/base/time_source.h
diff --git a/media/base/time_source.h b/media/base/time_source.h
index 2c5a72028e9fe3b27dc7f7c87f74fb20feafb65c..59713ff2f6a29283653c3d48f42188da15e2f7c3 100644
--- a/media/base/time_source.h
+++ b/media/base/time_source.h
@@ -34,7 +34,20 @@ class MEDIA_EXPORT TimeSource {
virtual void SetMediaTime(base::TimeDelta time) = 0;
// Returns the current media time.
+ //
+ // Values returned are intended for informational purposes, such as displaying
+ // UI with the current minute and second count. While it is guaranteed values
+ // will never go backwards, the frequency at which they update may be low.
virtual base::TimeDelta CurrentMediaTime() = 0;
+
+ // Returns an approximation of the current media time.
+ //
+ // Values returned are intended for interal use only, such as synchronizing
+ // video to audio.
+ //
+ // TODO(scherkus): Replace with a method that returns wall clock time for a
+ // given media time for use with VideoFrameScheduler http://crbug.com/110814
+ virtual base::TimeDelta ApproximateCurrentMediaTime() = 0;
xhwang 2014/09/08 22:56:06 As discussed offline, it's a bit confusing that th
scherkus (not reviewing) 2014/09/09 18:17:18 Done.
};
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698