summaryrefslogtreecommitdiffstats
path: root/libs/rs/driver/rsdCore.cpp
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2012-01-12 14:22:21 -0800
committerJason Sams <jsams@google.com>2012-01-12 14:22:21 -0800
commit17801f1eaafae66d63f862b8e89ee53310ce9972 (patch)
tree2ff42f914cf67d823a3c6bcd0a33f5c6680036f3 /libs/rs/driver/rsdCore.cpp
parent0ce62e0ae173ad59078df1b47cf63d593f5b2454 (diff)
downloadframeworks_base-17801f1eaafae66d63f862b8e89ee53310ce9972.zip
frameworks_base-17801f1eaafae66d63f862b8e89ee53310ce9972.tar.gz
frameworks_base-17801f1eaafae66d63f862b8e89ee53310ce9972.tar.bz2
Plumbing for RS priority.
Change-Id: Ibddfd40407fd6d24ac829a76a9a1e2047c48c5fd
Diffstat (limited to 'libs/rs/driver/rsdCore.cpp')
-rw-r--r--libs/rs/driver/rsdCore.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/rs/driver/rsdCore.cpp b/libs/rs/driver/rsdCore.cpp
index b934895..9b79900 100644
--- a/libs/rs/driver/rsdCore.cpp
+++ b/libs/rs/driver/rsdCore.cpp
@@ -270,6 +270,9 @@ void SetPriority(const Context *rsc, int32_t priority) {
for (uint32_t ct=0; ct < dc->mWorkers.mCount; ct++) {
setpriority(PRIO_PROCESS, dc->mWorkers.mNativeThreadId[ct], priority);
}
+ if (dc->mHasGraphics) {
+ rsdGLSetPriority(rsc, priority);
+ }
}
void Shutdown(Context *rsc) {