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

Unified Diff: media/renderers/audio_renderer_impl.h

Issue 2079923002: Combine bytes-decoded notification with memory usage and frame count. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 4 years, 6 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/filters/video_frame_stream_unittest.cc ('k') | media/renderers/audio_renderer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/renderers/audio_renderer_impl.h
diff --git a/media/renderers/audio_renderer_impl.h b/media/renderers/audio_renderer_impl.h
index c036727f35adfc078d5a0dbbc220385298e1a9dc..d628b9ada6edd16cba3c5ada3dc5234803b11616 100644
--- a/media/renderers/audio_renderer_impl.h
+++ b/media/renderers/audio_renderer_impl.h
@@ -121,6 +121,9 @@ class MEDIA_EXPORT AudioRendererImpl
kPlaying
};
+ // Callback for audio decoder to report statistics.
+ void BytesDecoded(uint64_t bytes);
+
// Callback from the audio decoder delivering decoded audio samples.
void DecodedAudioReady(AudioBufferStream::Status status,
const scoped_refptr<AudioBuffer>& buffer);
@@ -231,6 +234,9 @@ class MEDIA_EXPORT AudioRendererImpl
// Overridable tick clock for testing.
std::unique_ptr<base::TickClock> tick_clock_;
+ // Bytes decoded since the last time statistics was reported.
+ uint64_t bytes_decoded_;
+
// Memory usage of |algorithm_| recorded during the last
// HandleSplicerBuffer_Locked() call.
int64_t last_audio_memory_usage_;
« no previous file with comments | « media/filters/video_frame_stream_unittest.cc ('k') | media/renderers/audio_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698