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

Unified Diff: media/base/data_buffer.h

Issue 46015: Buffer interface is not uint8*. Slight change to way data buffers are create... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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/base/buffers.h ('k') | media/base/data_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/data_buffer.h
===================================================================
--- media/base/data_buffer.h (revision 11456)
+++ media/base/data_buffer.h (working copy)
@@ -16,23 +16,21 @@
class DataBuffer : public WritableBuffer {
public:
- DataBuffer(char* data, size_t buffer_size, size_t data_size,
- const base::TimeDelta& timestamp, const base::TimeDelta& duration);
+ DataBuffer();
// Buffer implementation.
- virtual const char* GetData() const;
+ virtual const uint8* GetData() const;
virtual size_t GetDataSize() const;
// WritableBuffer implementation.
- virtual char* GetWritableData();
- virtual size_t GetBufferSize() const;
+ virtual uint8* GetWritableData(size_t buffer_size);
virtual void SetDataSize(size_t data_size);
protected:
virtual ~DataBuffer();
private:
- char* data_;
+ uint8* data_;
size_t buffer_size_;
size_t data_size_;
};
« no previous file with comments | « media/base/buffers.h ('k') | media/base/data_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698