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

Unified Diff: media/renderers/video_renderer_impl.h

Issue 1136513004: Switch GetWallClockTime to using vectors for input and output. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix 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/renderers/renderer_impl.cc ('k') | media/renderers/video_renderer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/renderers/video_renderer_impl.h
diff --git a/media/renderers/video_renderer_impl.h b/media/renderers/video_renderer_impl.h
index d174c8ad2bdd67447fe38a1040a88ef234c3dadd..e6220b972426bcb920c102aa7f1ed58bec4aac73 100644
--- a/media/renderers/video_renderer_impl.h
+++ b/media/renderers/video_renderer_impl.h
@@ -65,7 +65,7 @@ class MEDIA_EXPORT VideoRendererImpl
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) override;
void Flush(const base::Closure& callback) override;
void StartPlayingFrom(base::TimeDelta timestamp) override;
@@ -150,6 +150,9 @@ class MEDIA_EXPORT VideoRendererImpl
// does so. Returns algorithm_->EffectiveFramesQueued().
size_t MaybeFireEndedCallback();
+ // Helper method for converting a single media timestamp to wall clock time.
+ base::TimeTicks ConvertMediaTimestamp(base::TimeDelta media_timestamp);
+
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
// Enables the use of VideoRendererAlgorithm and VideoRendererSink for frame
@@ -232,7 +235,7 @@ class MEDIA_EXPORT VideoRendererImpl
BufferingStateCB buffering_state_cb_;
base::Closure ended_cb_;
PipelineStatusCB error_cb_;
- WallClockTimeCB wall_clock_time_cb_;
+ TimeSource::WallClockTimeCB wall_clock_time_cb_;
base::TimeDelta start_timestamp_;
« no previous file with comments | « media/renderers/renderer_impl.cc ('k') | media/renderers/video_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698