commit | b28ca96fd69be0d3d12106f81c415439d185b017 | [log] [tgz] |
---|---|---|
author | Jason Sams <rjsams@android.com> | Mon Aug 09 18:13:33 2010 -0700 |
committer | Jason Sams <rjsams@android.com> | Mon Aug 09 18:13:33 2010 -0700 |
tree | 827b9e5aced31b103fdacb7d01d14fbc9f966b34 | |
parent | 05716aa0a1f42b72e04a2f41d565f3ca6c3aea1e [diff] [blame] |
Refcounting in allocations. Change-Id: Ida2dfb404b2cd832e622d981d73a938d5bc5b821
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 @@ 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;