summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsAllocation.h
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-10-05 13:32:49 -0700
committerJason Sams <rjsams@android.com>2010-10-05 13:32:49 -0700
commit5edc608a0749ed4b7074b5c1243043eb722c3c31 (patch)
tree6a9bb5e4d9a93cac9360b3c87647403818eebd10 /libs/rs/rsAllocation.h
parent2a2a38db16f3aff962ca17bac18d5c5379b25172 (diff)
downloadframeworks_base-5edc608a0749ed4b7074b5c1243043eb722c3c31.zip
frameworks_base-5edc608a0749ed4b7074b5c1243043eb722c3c31.tar.gz
frameworks_base-5edc608a0749ed4b7074b5c1243043eb722c3c31.tar.bz2
Implement allocation resizing.
Change-Id: Ie38d42419d595cec730a8721cc1321c5edb6b4d6
Diffstat (limited to 'libs/rs/rsAllocation.h')
-rw-r--r--libs/rs/rsAllocation.h8
1 files changed, 6 insertions, 2 deletions
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;}