From 66b2771d745aa66df5cf80b300b5ba0f936ff22e Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Fri, 25 Sep 2009 15:25:00 -0700 Subject: Reduce debugging spew and add props to selectivly re-enable it. change-id: Ib59ed5d7a9d479ccd1af456029735dbc65ae1efe --- libs/rs/rsObjectBase.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'libs/rs/rsObjectBase.cpp') diff --git a/libs/rs/rsObjectBase.cpp b/libs/rs/rsObjectBase.cpp index acfc5ceede67..83fa482a52f0 100644 --- a/libs/rs/rsObjectBase.cpp +++ b/libs/rs/rsObjectBase.cpp @@ -65,10 +65,12 @@ void ObjectBase::incSysRef() const bool ObjectBase::checkDelete() const { if (!(mSysRefCount | mUserRefCount)) { - if (mName) { - LOGV("Deleting RS object %p, name %s", this, mName); - } else { - LOGV("Deleting RS object %p, no name", this); + if (mRSC && mRSC->props.mLogObjects) { + if (mName) { + LOGV("Deleting RS object %p, name %s", this, mName); + } else { + LOGV("Deleting RS object %p, no name", this); + } } delete this; return true; @@ -155,7 +157,9 @@ void ObjectBase::remove() const void ObjectBase::zeroAllUserRef(Context *rsc) { - LOGV("Forcing release of all outstanding user refs."); + if (rsc->props.mLogObjects) { + LOGV("Forcing release of all outstanding user refs."); + } // This operation can be slow, only to be called during context cleanup. const ObjectBase * o = rsc->mObjHead; -- cgit v1.2.3-59-g8ed1b