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

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

Issue 2788483003: Introduce AudioBufferMemoryPool to avoid thrashing on audio buffers. (Closed)
Patch Set: Add class comments. Created 3 years, 9 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/cdm/cdm_adapter.cc ('k') | media/filters/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/filters/android/media_codec_audio_decoder.h
diff --git a/media/filters/android/media_codec_audio_decoder.h b/media/filters/android/media_codec_audio_decoder.h
index e845be6103529641a2f50b6afd57d53f1a3e49da..e5a8958f147938ee7c44e54647a213f278b0c1d2 100644
--- a/media/filters/android/media_codec_audio_decoder.h
+++ b/media/filters/android/media_codec_audio_decoder.h
@@ -16,6 +16,7 @@
#include "base/timer/timer.h"
#include "media/base/android/media_codec_loop.h"
#include "media/base/android/media_drm_bridge_cdm_context.h"
+#include "media/base/audio_buffer.h"
#include "media/base/audio_decoder.h"
#include "media/base/audio_decoder_config.h"
#include "media/base/media_export.h"
@@ -192,6 +193,9 @@ class MEDIA_EXPORT MediaCodecAudioDecoder : public AudioDecoder,
// registration id is used for this.
int cdm_registration_id_;
+ // Pool which helps avoid thrashing memory when returning audio buffers.
+ scoped_refptr<AudioBufferMemoryPool> pool_;
+
// The MediaCrypto object is used in the MediaCodec.configure() in case of
// an encrypted stream.
media::MediaDrmBridgeCdmContext::JavaObjectPtr media_crypto_;
« no previous file with comments | « media/cdm/cdm_adapter.cc ('k') | media/filters/android/media_codec_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698