summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsThreadIO.cpp
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2009-09-23 16:37:36 -0700
committerJoe Onorato <joeo@android.com>2009-09-23 17:26:07 -0700
commit9ac2c66f0171593113238635c6a7921c41215e77 (patch)
tree77b1468329a63d5bf1e98e7c6dce739a313afce9 /libs/rs/rsThreadIO.cpp
parent8799b96ea09d5fdd9904dd9de3002c0a9cd28fdc (diff)
downloadframeworks_base-9ac2c66f0171593113238635c6a7921c41215e77.zip
frameworks_base-9ac2c66f0171593113238635c6a7921c41215e77.tar.gz
frameworks_base-9ac2c66f0171593113238635c6a7921c41215e77.tar.bz2
Make the renderscript timing logging available by setting debug.rs.profile=1
Diffstat (limited to 'libs/rs/rsThreadIO.cpp')
-rw-r--r--libs/rs/rsThreadIO.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/rs/rsThreadIO.cpp b/libs/rs/rsThreadIO.cpp
index db4bb81..4072f06 100644
--- a/libs/rs/rsThreadIO.cpp
+++ b/libs/rs/rsThreadIO.cpp
@@ -42,13 +42,13 @@ bool ThreadIO::playCoreCommands(Context *con, bool waitForCommand)
uint32_t cmdID = 0;
uint32_t cmdSize = 0;
ret = true;
-#if RS_LOG_TIMES
- con->timerSet(Context::RS_TIMER_IDLE);
-#endif
+ if (con->logTimes) {
+ con->timerSet(Context::RS_TIMER_IDLE);
+ }
const void * data = mToCore.get(&cmdID, &cmdSize);
-#if RS_LOG_TIMES
- con->timerSet(Context::RS_TIMER_INTERNAL);
-#endif
+ if (con->logTimes) {
+ con->timerSet(Context::RS_TIMER_INTERNAL);
+ }
waitForCommand = false;
//LOGV("playCoreCommands 3 %i %i", cmdID, cmdSize);