summaryrefslogtreecommitdiffstats
path: root/rs
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2015-01-22 21:08:44 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-01-22 21:08:44 +0000
commit231df77eff4e31fead0dfadee6ea6ead980b24ea (patch)
tree1580dfb203f412d873b540dc9db97f82d71ac008 /rs
parent081cda87e1ed7d1c0f30408dbc6635afc48d98a0 (diff)
parentc9870c145f820b7fc8e4a1f2879f4f452fc6ae01 (diff)
downloadframeworks_base-231df77eff4e31fead0dfadee6ea6ead980b24ea.zip
frameworks_base-231df77eff4e31fead0dfadee6ea6ead980b24ea.tar.gz
frameworks_base-231df77eff4e31fead0dfadee6ea6ead980b24ea.tar.bz2
Merge "Fix default compute thread priority"
Diffstat (limited to 'rs')
-rw-r--r--rs/java/android/renderscript/RenderScript.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/rs/java/android/renderscript/RenderScript.java b/rs/java/android/renderscript/RenderScript.java
index e12495a..271fe05 100644
--- a/rs/java/android/renderscript/RenderScript.java
+++ b/rs/java/android/renderscript/RenderScript.java
@@ -1047,8 +1047,10 @@ public class RenderScript {
* their priority to LOW to avoid starving forground processes.
*/
public enum Priority {
- LOW (Process.THREAD_PRIORITY_BACKGROUND + (5 * Process.THREAD_PRIORITY_LESS_FAVORABLE)),
- NORMAL (Process.THREAD_PRIORITY_DISPLAY);
+ // These values used to represent official thread priority values
+ // now they are simply enums to be used by the runtime side
+ LOW (15),
+ NORMAL (-8);
int mID;
Priority(int id) {