diff options
author | 2010-09-30 18:15:52 -0700 | |
---|---|---|
committer | 2010-09-30 18:15:52 -0700 | |
commit | f166d9b5a280f0ec2ce7e089471c20a1477e2dbb (patch) | |
tree | 9046963393d9ebc040cf50eb6c4f921130dd2b89 /libs/rs/rsObjectBase.h | |
parent | 3cfc508f4ec535b47ffbb587b32a8846c37338cc (diff) |
Add object validity checking.
Change-Id: I2613e87b09a6e560f0381d4ed620d60a10bc30e4
Diffstat (limited to 'libs/rs/rsObjectBase.h')
-rw-r--r-- | libs/rs/rsObjectBase.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/rs/rsObjectBase.h b/libs/rs/rsObjectBase.h index ad95b8175cee..59fb4a6b2ce2 100644 --- a/libs/rs/rsObjectBase.h +++ b/libs/rs/rsObjectBase.h @@ -56,6 +56,8 @@ public: virtual void serialize(OStream *stream) const = 0; virtual RsA3DClassID getClassId() const = 0; + static bool isValid(const Context *rsc, const ObjectBase *obj); + protected: const char *mAllocFile; uint32_t mAllocLine; |