michael@0: // michael@0: // Copyright (c) 2013 The ANGLE Project Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: // michael@0: michael@0: // BufferStorage9.h Defines the BufferStorage9 class. michael@0: michael@0: #ifndef LIBGLESV2_RENDERER_BUFFERSTORAGE9_H_ michael@0: #define LIBGLESV2_RENDERER_BUFFERSTORAGE9_H_ michael@0: michael@0: #include "libGLESv2/renderer/BufferStorage.h" michael@0: michael@0: namespace rx michael@0: { michael@0: michael@0: class BufferStorage9 : public BufferStorage michael@0: { michael@0: public: michael@0: BufferStorage9(); michael@0: virtual ~BufferStorage9(); michael@0: michael@0: static BufferStorage9 *makeBufferStorage9(BufferStorage *bufferStorage); michael@0: michael@0: virtual void *getData(); michael@0: virtual void setData(const void* data, unsigned int size, unsigned int offset); michael@0: virtual void clear(); michael@0: virtual unsigned int getSize() const; michael@0: virtual bool supportsDirectBinding() const; michael@0: michael@0: private: michael@0: DISALLOW_COPY_AND_ASSIGN(BufferStorage9); michael@0: michael@0: void *mMemory; michael@0: unsigned int mAllocatedSize; michael@0: michael@0: unsigned int mSize; michael@0: }; michael@0: michael@0: } michael@0: michael@0: #endif // LIBGLESV2_RENDERER_BUFFERSTORAGE9_H_