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

Unified Diff: media/base/pipeline.h

Issue 403723006: Make media::AudioRenderer inherit from media::TimeSource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: composition 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
Index: media/base/pipeline.h
diff --git a/media/base/pipeline.h b/media/base/pipeline.h
index 6a408da23f0d18abaa66411044e58d37d6e29ecb..9bfa7857a9522455d1e7960d6b3c4e439d15e677 100644
--- a/media/base/pipeline.h
+++ b/media/base/pipeline.h
@@ -34,6 +34,7 @@ class MediaLog;
class TextRenderer;
class TextTrackConfig;
class TimeDeltaInterpolator;
+class TimeSource;
class VideoRenderer;
// Metadata describing a pipeline once it has been initialized.
@@ -317,7 +318,7 @@ class MEDIA_EXPORT Pipeline : public DemuxerHost {
void PausePlayback();
void StartPlayback();
- void PauseClockAndStopRendering_Locked();
+ void PauseClockAndStopTicking_Locked();
void StartClockIfWaitingForTimeUpdate_Locked();
// Task runner used to execute pipeline tasks.
@@ -420,6 +421,9 @@ class MEDIA_EXPORT Pipeline : public DemuxerHost {
scoped_ptr<VideoRenderer> video_renderer_;
scoped_ptr<TextRenderer> text_renderer_;
+ // Renderer-provided time source used to control playback.
+ TimeSource* time_source_;
+
PipelineStatistics statistics_;
scoped_ptr<SerialRunner> pending_callbacks_;
« no previous file with comments | « media/base/mock_filters.cc ('k') | media/base/pipeline.cc » ('j') | media/base/pipeline.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698