summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsObjectBase.h
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-02-17 15:38:10 -0800
committerJason Sams <rjsams@android.com>2010-02-17 15:38:10 -0800
commite4c487a75282e8a38a8b3defd49e7799c8670881 (patch)
treecce081d45415dfe54bdd65761e85f13046c91a82 /libs/rs/rsObjectBase.h
parent5bc54073186a83472963934d4325c3b9d968892f (diff)
downloadframeworks_base-e4c487a75282e8a38a8b3defd49e7799c8670881.zip
frameworks_base-e4c487a75282e8a38a8b3defd49e7799c8670881.tar.gz
frameworks_base-e4c487a75282e8a38a8b3defd49e7799c8670881.tar.bz2
Implement type collapsing for Elements and Types. Now if a user creates two or more identical objects we simply reuse the existing object rather than create a new one.
Diffstat (limited to 'libs/rs/rsObjectBase.h')
-rw-r--r--libs/rs/rsObjectBase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/rs/rsObjectBase.h b/libs/rs/rsObjectBase.h
index f247022..bb03b87 100644
--- a/libs/rs/rsObjectBase.h
+++ b/libs/rs/rsObjectBase.h
@@ -56,6 +56,7 @@ public:
protected:
const char *mAllocFile;
uint32_t mAllocLine;
+ Context *mRSC;
private:
void add() const;
@@ -64,7 +65,6 @@ private:
bool checkDelete() const;
char * mName;
- Context *mRSC;
mutable int32_t mSysRefCount;
mutable int32_t mUserRefCount;