diff options
| author | Jason Sams <rjsams@android.com> | 2009-06-09 12:15:30 -0700 |
|---|---|---|
| committer | Jason Sams <rjsams@android.com> | 2009-06-09 12:15:30 -0700 |
| commit | 1030893d9b99b72468034da13df025bda479bb97 (patch) | |
| tree | f26d14b7700894cef0fb6f484e9f79d3879df910 /rsObjectBase.h | |
| parent | 928b734b2fbba0800567c8b7e686bcf5f45483cc (diff) | |
| download | android_frameworks_rs-1030893d9b99b72468034da13df025bda479bb97.tar.gz android_frameworks_rs-1030893d9b99b72468034da13df025bda479bb97.tar.bz2 android_frameworks_rs-1030893d9b99b72468034da13df025bda479bb97.zip | |
checkpoint pragma support. Includes more cleanup of script enviroment storage to keep the env settings in the base and only the per language state in ScriptC.
Diffstat (limited to 'rsObjectBase.h')
| -rw-r--r-- | rsObjectBase.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/rsObjectBase.h b/rsObjectBase.h index 7761e49f..ca7acda5 100644 --- a/rsObjectBase.h +++ b/rsObjectBase.h @@ -47,6 +47,16 @@ public: mRef = NULL; } + ObjectBaseRef(const ObjectBaseRef &ref) { + mRef = ref.get(); + mRef->incRef(); + } + + ObjectBaseRef(T *ref) { + mRef = ref; + ref->incRef(); + } + ~ObjectBaseRef() { clear(); } @@ -77,9 +87,6 @@ public: protected: T * mRef; -private: - ObjectBaseRef(const ObjectBaseRef &) {}; - }; |
