am de56e38e: Merge "Fix default compute thread priority" automerge: 231df77

* commit 'de56e38e9e8f7f4a54633b66e2952cea776d6ab5':
  Fix default compute thread priority
This commit is contained in:
Jason Sams
2015-01-22 21:18:16 +00:00
committed by Android Git Automerger

View File

@@ -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) {