From f166d9b5a280f0ec2ce7e089471c20a1477e2dbb Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Thu, 30 Sep 2010 18:15:52 -0700 Subject: Add object validity checking. Change-Id: I2613e87b09a6e560f0381d4ed620d60a10bc30e4 --- libs/rs/rsObjectBase.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/rs/rsObjectBase.h') 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; -- cgit v1.2.3-59-g8ed1b