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

Unified Diff: media/base/video_renderer.h

Issue 1068593003: Introduce TimeSource notifications to the VideoRenderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/video_renderer.h
diff --git a/media/base/video_renderer.h b/media/base/video_renderer.h
index 360e632517fbf79621781f4d96f330bc0801d505..8c07036cf4e0b11d321f5a3c8991128e58c08596 100644
--- a/media/base/video_renderer.h
+++ b/media/base/video_renderer.h
@@ -82,6 +82,12 @@ class MEDIA_EXPORT VideoRenderer {
// Only valid to call after a successful Initialize() or Flush().
virtual void StartPlayingFrom(base::TimeDelta timestamp) = 0;
+ // Called when time starts ticking and the playback rate is greater than 0.
+ virtual void OnTimeProgressing() = 0;
+
+ // Called when time stops ticking or the playback rate is zero.
+ virtual void OnTimeStopped() = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(VideoRenderer);
};

Powered by Google App Engine
This is Rietveld 408576698