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

Unified Diff: media/base/decoder_buffer.h

Issue 10949029: Replace av_malloc with AlignedAlloc for memory allocation in DecoderBuffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolve Dale's comments. Created 8 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 | « no previous file | media/base/decoder_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/decoder_buffer.h
diff --git a/media/base/decoder_buffer.h b/media/base/decoder_buffer.h
index e822de555c623227da160885a94d531bdb561428..d0c57ce07f53afdc4a97435cce0e38b9d358d749 100644
--- a/media/base/decoder_buffer.h
+++ b/media/base/decoder_buffer.h
@@ -14,6 +14,7 @@
#define MEDIA_BASE_DECODER_BUFFER_H_
#include "base/memory/scoped_ptr.h"
+#include "build/build_config.h"
#include "media/base/buffers.h"
#include "media/base/decrypt_config.h"
@@ -21,6 +22,15 @@ namespace media {
class MEDIA_EXPORT DecoderBuffer : public Buffer {
public:
+ enum {
+ kPaddingSize = 16,
+#if defined(ARCH_CPU_ARM_FAMILY)
+ kAlignmentSize = 16
+#else
+ kAlignmentSize = 32
+#endif
+ };
+
// Allocates buffer of size |buffer_size| >= 0. Buffer will be padded and
// aligned as necessary.
explicit DecoderBuffer(int buffer_size);
« no previous file with comments | « no previous file | media/base/decoder_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698