diff options
| author | Jason Sams <rjsams@android.com> | 2009-12-10 17:15:13 -0800 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2009-12-10 17:15:13 -0800 |
| commit | aad442ec278e6528bf1b96bd02c05d2914d033f9 (patch) | |
| tree | 4c69dc9b6c5f58c6131deb2a4b743d16b07dd4b5 /libs/rs/rsScriptC.cpp | |
| parent | 54db799ada726ccfffc94c5bb4e33e895bfb25b8 (diff) | |
| parent | b62954b66542e3e2654d97a81123c51805bceca7 (diff) | |
| download | frameworks_base-aad442ec278e6528bf1b96bd02c05d2914d033f9.zip frameworks_base-aad442ec278e6528bf1b96bd02c05d2914d033f9.tar.gz frameworks_base-aad442ec278e6528bf1b96bd02c05d2914d033f9.tar.bz2 | |
am b62954b6: am 8f31c230: am 57ce0888: Merge change Id22c0137 into eclair
Merge commit 'b62954b66542e3e2654d97a81123c51805bceca7'
* commit 'b62954b66542e3e2654d97a81123c51805bceca7':
Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.
Diffstat (limited to 'libs/rs/rsScriptC.cpp')
| -rw-r--r-- | libs/rs/rsScriptC.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp index 073d98b..f11b862 100644 --- a/libs/rs/rsScriptC.cpp +++ b/libs/rs/rsScriptC.cpp @@ -60,7 +60,7 @@ void ScriptC::setupScript() } -bool ScriptC::run(Context *rsc, uint32_t launchIndex) +uint32_t ScriptC::run(Context *rsc, uint32_t launchIndex) { Context::ScriptTLSStruct * tls = (Context::ScriptTLSStruct *)pthread_getspecific(Context::gThreadTLSKey); @@ -85,9 +85,9 @@ bool ScriptC::run(Context *rsc, uint32_t launchIndex) } setupScript(); - bool ret = false; + uint32_t ret = 0; tls->mScript = this; - ret = mProgram.mScript(launchIndex) != 0; + ret = mProgram.mScript(launchIndex); tls->mScript = NULL; return ret; } |
