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

Unified Diff: media/base/clock.h

Issue 375003002: Remove duration from media::Clock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « no previous file | media/base/clock.cc » ('j') | media/base/clock_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/clock.h
diff --git a/media/base/clock.h b/media/base/clock.h
index fbd7ca125d7d243922758b1e19db60654d29a394..e48ff334abc9f924dee036cadc94b65bc91088f1 100644
--- a/media/base/clock.h
+++ b/media/base/clock.h
@@ -54,9 +54,6 @@ class MEDIA_EXPORT Clock {
// Forcefully sets the media time to |current_time|. The second parameter is
// the |max_time| that the clock should progress after a call to Play(). This
// value is often the time of the end of the last frame buffered and decoded.
- //
- // These values are clamped to the duration of the video, which is initially
- // set to 0 (before SetDuration() is called).
void SetTime(base::TimeDelta current_time, base::TimeDelta max_time);
// Sets the |max_time| to be returned by a call to Elapsed().
@@ -66,13 +63,6 @@ class MEDIA_EXPORT Clock {
// never been called.
base::TimeDelta Elapsed();
- // Sets the duration of the video. Clock expects the duration will be set
- // exactly once.
- void SetDuration(base::TimeDelta duration);
-
- // Returns the duration of the clock, or 0 if not set.
- base::TimeDelta Duration() const;
-
private:
// Updates the reference points based on the current calculated time.
void UpdateReferencePoints();
@@ -113,9 +103,6 @@ class MEDIA_EXPORT Clock {
// The maximum time that can be returned by calls to Elapsed().
base::TimeDelta max_time_;
- // Duration of the media.
- base::TimeDelta duration_;
-
DISALLOW_COPY_AND_ASSIGN(Clock);
};
« no previous file with comments | « no previous file | media/base/clock.cc » ('j') | media/base/clock_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698