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

Unified Diff: media/base/video_renderer.h

Issue 1129323003: Allow callers of TimeSource::GetWallClockTime() to suspend time. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. Created 5 years, 7 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/base/time_source.h ('k') | media/base/wall_clock_time_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_renderer.h
diff --git a/media/base/video_renderer.h b/media/base/video_renderer.h
index 96a561f5e914cd1f162c5860a0a087c63eabe5fa..454c6644127e85fc60b9d052dad1ab3210b2159c 100644
--- a/media/base/video_renderer.h
+++ b/media/base/video_renderer.h
@@ -12,6 +12,7 @@
#include "media/base/decryptor.h"
#include "media/base/media_export.h"
#include "media/base/pipeline_status.h"
+#include "media/base/time_source.h"
namespace media {
@@ -24,9 +25,6 @@ class MEDIA_EXPORT VideoRenderer {
// Used to paint VideoFrame.
typedef base::Callback<void(const scoped_refptr<VideoFrame>&)> PaintCB;
- // Used to convert a media timestamp into a wall clock timestamp.
- typedef base::Callback<base::TimeTicks(base::TimeDelta)> WallClockTimeCB;
-
VideoRenderer();
// Stops all operations and fires all pending callbacks.
@@ -62,7 +60,7 @@ class MEDIA_EXPORT VideoRenderer {
const BufferingStateCB& buffering_state_cb,
const base::Closure& ended_cb,
const PipelineStatusCB& error_cb,
- const WallClockTimeCB& wall_clock_time_cb,
+ const TimeSource::WallClockTimeCB& wall_clock_time_cb,
const base::Closure& waiting_for_decryption_key_cb) = 0;
// Discards any video data and stops reading from |stream|, executing
« no previous file with comments | « media/base/time_source.h ('k') | media/base/wall_clock_time_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698