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

Unified Diff: media/base/android/audio_decoder_job.h

Issue 1367403003: Added UMA metrics for MediaSourcePlayer and MediaCodecPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mtplayer-drm
Patch Set: Addressed most of the comments Created 5 years, 3 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/android/audio_decoder_job.h
diff --git a/media/base/android/audio_decoder_job.h b/media/base/android/audio_decoder_job.h
index 0a9849f59d733c663a58e4cf6a1ef5024a1b7255..baee4a354bfa79d6f42575ca872bbdd169ae730c 100644
--- a/media/base/android/audio_decoder_job.h
+++ b/media/base/android/audio_decoder_job.h
@@ -24,7 +24,8 @@ class AudioDecoderJob : public MediaDecoderJob {
// |on_demuxer_config_changed_cb| - Callback used to inform the caller that
// demuxer config has changed.
AudioDecoderJob(const base::Closure& request_data_cb,
- const base::Closure& on_demuxer_config_changed_cb);
+ const base::Closure& on_demuxer_config_changed_cb,
+ FrameStatistics* frame_statistics);
~AudioDecoderJob() override;
// MediaDecoderJob implementation.
@@ -79,6 +80,9 @@ class AudioDecoderJob : public MediaDecoderJob {
// Object to calculate the current audio timestamp for A/V sync.
scoped_ptr<AudioTimestampHelper> audio_timestamp_helper_;
+ // The time limit for the next frame to avoid underrun.
+ base::TimeTicks next_frame_time_limit_;
+
DISALLOW_COPY_AND_ASSIGN(AudioDecoderJob);
};

Powered by Google App Engine
This is Rietveld 408576698