summaryrefslogtreecommitdiffstats
path: root/rsContext.cpp
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2014-07-24 18:47:34 -0700
committerJason Sams <jsams@google.com>2014-07-24 18:47:34 -0700
commit2d8030adb222044345099cf1e3c7998c71c82297 (patch)
tree4e4eb7f129cd468e83be9a014c3bba334f705545 /rsContext.cpp
parenta9bd021c74d4a1cd679f27505226e6b6f10ddaf8 (diff)
downloadandroid_frameworks_rs-2d8030adb222044345099cf1e3c7998c71c82297.tar.gz
android_frameworks_rs-2d8030adb222044345099cf1e3c7998c71c82297.tar.bz2
android_frameworks_rs-2d8030adb222044345099cf1e3c7998c71c82297.zip
Add debug.rs.debug to force debug mode.
Change-Id: Ia78cd133f2b29c36f117852157ca78c2389792d5
Diffstat (limited to 'rsContext.cpp')
-rw-r--r--rsContext.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/rsContext.cpp b/rsContext.cpp
index 0fd9a71e..2112ace8 100644
--- a/rsContext.cpp
+++ b/rsContext.cpp
@@ -312,6 +312,11 @@ void * Context::threadProc(void *vrsc) {
rsc->props.mLogVisual = getProp("debug.rs.visual") != 0;
rsc->props.mDebugMaxThreads = getProp("debug.rs.max-threads");
+ if (getProp("debug.rs.debug") != 0) {
+ ALOGD("Forcing debug context due to debug.rs.debug.");
+ rsc->mContextType = RS_CONTEXT_TYPE_DEBUG;
+ }
+
bool loadDefault = true;
// Provide a mechanism for dropping in a different RS driver.