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

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

Issue 1367403003: Added UMA metrics for MediaSourcePlayer and MediaCodecPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mtplayer-drm
Patch Set: Attempt to fix clang compilation 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
« no previous file with comments | « media/base/android/audio_decoder_job.cc ('k') | media/base/android/media_codec_audio_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_codec_audio_decoder.h
diff --git a/media/base/android/media_codec_audio_decoder.h b/media/base/android/media_codec_audio_decoder.h
index 03df46b0ab1e5c4e3b1f22eb321238a8d9a5c57c..3143d560fb0ad29ec76fbc1a9de48e3f3a4aace6 100644
--- a/media/base/android/media_codec_audio_decoder.h
+++ b/media/base/android/media_codec_audio_decoder.h
@@ -19,6 +19,7 @@ class MediaCodecAudioDecoder : public MediaCodecDecoder {
// Called for each rendered frame.
MediaCodecAudioDecoder(
const scoped_refptr<base::SingleThreadTaskRunner>& media_runner,
+ FrameStatistics* frame_statistics,
const base::Closure& request_data_cb,
const base::Closure& starvation_cb,
const base::Closure& decoder_drained_cb,
@@ -87,6 +88,9 @@ class MediaCodecAudioDecoder : public MediaCodecDecoder {
// Reports current playback time to the callee.
SetTimeCallback update_current_time_cb_;
+ // The time limit for the next frame to avoid underrun.
+ base::TimeTicks next_frame_time_limit_;
+
DISALLOW_COPY_AND_ASSIGN(MediaCodecAudioDecoder);
};
« no previous file with comments | « media/base/android/audio_decoder_job.cc ('k') | media/base/android/media_codec_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698