Fix default compute thread priority

bug 16651474

Compute inherited graphics default thread priority of Display.  This
was not intended.

Change-Id: I0dd9a230ce8ceba64e971b024cbe518927cd2550
This commit is contained in:
Jason Sams
2015-01-21 12:55:14 -08:00
parent 42c2ac00e6
commit c9870c145f

View File

@@ -1042,8 +1042,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) {