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

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: 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') | media/base/decoder_buffer.cc » ('J')
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..138b38eed2b756534dc4f83c8ac6dfdcfbd94731 100644
--- a/media/base/decoder_buffer.h
+++ b/media/base/decoder_buffer.h
@@ -21,6 +21,9 @@ namespace media {
class MEDIA_EXPORT DecoderBuffer : public Buffer {
public:
+ static const int kPaddingSize = 16;
DaleCurtis 2012/09/20 00:00:04 Comments for both. enum { kPaddingBytes = 16, kAl
xhwang 2012/09/20 01:43:03 Done.
+ static const int kAlignmentSize = 32;
+
// 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') | media/base/decoder_buffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698