From 5edc608a0749ed4b7074b5c1243043eb722c3c31 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Tue, 5 Oct 2010 13:32:49 -0700 Subject: Implement allocation resizing. Change-Id: Ie38d42419d595cec730a8721cc1321c5edb6b4d6 --- libs/rs/rsAllocation.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libs/rs/rsAllocation.h') diff --git a/libs/rs/rsAllocation.h b/libs/rs/rsAllocation.h index ce5372f..24e245f 100644 --- a/libs/rs/rsAllocation.h +++ b/libs/rs/rsAllocation.h @@ -55,6 +55,10 @@ public: void uploadToBufferObject(const Context *rsc); uint32_t getBufferObjectID() const {return mBufferID;} + void copyRange1D(Context *rsc, const Allocation *src, int32_t srcOff, int32_t destOff, int32_t len); + + void resize1D(Context *rsc, uint32_t dimX); + void resize2D(Context *rsc, uint32_t dimX, uint32_t dimY); void data(Context *rsc, const void *data, uint32_t sizeBytes); void subData(Context *rsc, uint32_t xoff, uint32_t count, const void *data, uint32_t sizeBytes); @@ -86,8 +90,8 @@ public: bool getIsTexture() const {return mIsTexture;} bool getIsBufferObject() const {return mIsVertexBuffer;} - void incRefs(const void *ptr, size_t ct) const; - void decRefs(const void *ptr, size_t ct) const; + void incRefs(const void *ptr, size_t ct, size_t startOff = 0) const; + void decRefs(const void *ptr, size_t ct, size_t startOff = 0) const; void sendDirty() const; bool getHasGraphicsMipmaps() const {return mTextureGenMipmap;} -- cgit v1.1