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

Unified Diff: media/cdm/simple_cdm_buffer.h

Issue 1802183002: Convert CreateCdmBuffer() to use size_t for |capacity| (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove cast Created 4 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/simple_cdm_allocator.cc ('k') | media/cdm/simple_cdm_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/simple_cdm_buffer.h
diff --git a/media/cdm/simple_cdm_buffer.h b/media/cdm/simple_cdm_buffer.h
index b48fec517abfcba3f41e868988461a5ce770206f..119b620c86714e40997ecb0c845bb2156d2acc38 100644
--- a/media/cdm/simple_cdm_buffer.h
+++ b/media/cdm/simple_cdm_buffer.h
@@ -5,7 +5,9 @@
#ifndef MEDIA_CDM_SIMPLE_CDM_BUFFER_H_
#define MEDIA_CDM_SIMPLE_CDM_BUFFER_H_
+#include <stddef.h>
#include <stdint.h>
+
#include <vector>
#include "base/macros.h"
@@ -17,7 +19,7 @@ namespace media {
// implementation that stores the data in a std::vector<uint8_t>.
class SimpleCdmBuffer : public cdm::Buffer {
public:
- static SimpleCdmBuffer* Create(uint32_t capacity);
+ static SimpleCdmBuffer* Create(size_t capacity);
// cdm::Buffer implementation.
void Destroy() final;
« no previous file with comments | « media/cdm/simple_cdm_allocator.cc ('k') | media/cdm/simple_cdm_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698