summaryrefslogtreecommitdiffstats
path: root/rsObjectBase.h
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2013-04-02 16:32:34 -0700
committerStephen Hines <srhines@google.com>2013-04-02 16:56:03 -0700
commitd216dafa216f3329577ab624cdc5a5d1860ec035 (patch)
tree731dcf0fc4bc4d82fc53368aa81ba2c6acfad948 /rsObjectBase.h
parent2fdf9cd285374c54a12744f24d7aca97be7e4326 (diff)
downloadandroid_frameworks_rs-d216dafa216f3329577ab624cdc5a5d1860ec035.tar.gz
android_frameworks_rs-d216dafa216f3329577ab624cdc5a5d1860ec035.tar.bz2
android_frameworks_rs-d216dafa216f3329577ab624cdc5a5d1860ec035.zip
Add DebugHelper to ObjectBase.
This enables us to easily use things like CallStack for our debug runtime. Without this abstraction, we end up with size/offset mismatches against libbcc's implementation of set/getElementAt. Change-Id: I91ae0ef709fa5b8ab7dda905cd07d1c565dd0212
Diffstat (limited to 'rsObjectBase.h')
-rw-r--r--rsObjectBase.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/rsObjectBase.h b/rsObjectBase.h
index a111e0c9..470c334c 100644
--- a/rsObjectBase.h
+++ b/rsObjectBase.h
@@ -19,12 +19,7 @@
#include "rsUtils.h"
#include "rsDefines.h"
-
-#define RS_OBJECT_DEBUG 0
-
-#ifndef RS_SERVER
-#include <utils/CallStack.h>
-#endif
+#include "rsDebugHelper.h"
namespace android {
namespace renderscript {
@@ -91,10 +86,7 @@ private:
mutable const ObjectBase * mPrev;
mutable const ObjectBase * mNext;
-#if RS_OBJECT_DEBUG
- CallStack mStack;
-#endif
-
+ DebugHelper *mDH;
};
template<class T>