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

Unified Diff: media/filters/video_renderer_algorithm.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/wall_clock_time_source_unittest.cc ('k') | media/filters/video_renderer_algorithm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/video_renderer_algorithm.h
diff --git a/media/filters/video_renderer_algorithm.h b/media/filters/video_renderer_algorithm.h
index 88e8766dab15d03c8cabc9179d63682a235a3e17..8da63d9ff3aa89d0177dddc99e26ebd7cb259fc2 100644
--- a/media/filters/video_renderer_algorithm.h
+++ b/media/filters/video_renderer_algorithm.h
@@ -44,10 +44,8 @@ namespace media {
// Combined these three approaches enforce optimal smoothness in many cases.
class MEDIA_EXPORT VideoRendererAlgorithm {
public:
- // Used to convert a media timestamp into wall clock time.
- using TimeConverterCB = base::Callback<base::TimeTicks(base::TimeDelta)>;
-
- explicit VideoRendererAlgorithm(const TimeConverterCB& time_converter_cb);
+ explicit VideoRendererAlgorithm(
+ const TimeSource::WallClockTimeCB& wall_clock_time_cb);
~VideoRendererAlgorithm();
// Chooses the best frame for the interval [deadline_min, deadline_max] based
@@ -255,7 +253,7 @@ class MEDIA_EXPORT VideoRendererAlgorithm {
bool have_rendered_frames_;
// Callback used to convert media timestamps into wall clock timestamps.
- const TimeConverterCB time_converter_cb_;
+ const TimeSource::WallClockTimeCB wall_clock_time_cb_;
// The last |deadline_max| provided to Render(), used to predict whether
// frames were rendered over cadence between Render() calls.
« no previous file with comments | « media/base/wall_clock_time_source_unittest.cc ('k') | media/filters/video_renderer_algorithm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698