diff options
author | Jason Sams <rjsams@android.com> | 2009-09-25 15:25:00 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2009-09-25 15:25:00 -0700 |
commit | 66b2771d745aa66df5cf80b300b5ba0f936ff22e (patch) | |
tree | 3b2b5a14bf61b4c2a8903c3230f7df84660e07ea /libs/rs/rsObjectBase.cpp | |
parent | a9e7a05b84470257637c97d65f6562aa832c66ef (diff) |
Reduce debugging spew and add props to selectivly re-enable it.
change-id: Ib59ed5d7a9d479ccd1af456029735dbc65ae1efe
Diffstat (limited to 'libs/rs/rsObjectBase.cpp')
-rw-r--r-- | libs/rs/rsObjectBase.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
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; |