From b28ca96fd69be0d3d12106f81c415439d185b017 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Mon, 9 Aug 2010 18:13:33 -0700 Subject: Refcounting in allocations. Change-Id: Ida2dfb404b2cd832e622d981d73a938d5bc5b821 --- libs/rs/rsAllocation.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libs/rs/rsAllocation.h') 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; -- cgit v1.1