summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsAllocation.h
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-08-09 18:13:33 -0700
committerJason Sams <rjsams@android.com>2010-08-09 18:13:33 -0700
commitb28ca96fd69be0d3d12106f81c415439d185b017 (patch)
tree827b9e5aced31b103fdacb7d01d14fbc9f966b34 /libs/rs/rsAllocation.h
parent05716aa0a1f42b72e04a2f41d565f3ca6c3aea1e (diff)
downloadframeworks_base-b28ca96fd69be0d3d12106f81c415439d185b017.zip
frameworks_base-b28ca96fd69be0d3d12106f81c415439d185b017.tar.gz
frameworks_base-b28ca96fd69be0d3d12106f81c415439d185b017.tar.bz2
Refcounting in allocations.
Change-Id: Ida2dfb404b2cd832e622d981d73a938d5bc5b821
Diffstat (limited to 'libs/rs/rsAllocation.h')
-rw-r--r--libs/rs/rsAllocation.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/rs/rsAllocation.h b/libs/rs/rsAllocation.h
index 8273165..177d5a4 100644
--- a/libs/rs/rsAllocation.h
+++ b/libs/rs/rsAllocation.h
@@ -81,6 +81,9 @@ 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;
+
protected:
void sendDirty() const;