Skip to content

Commit

Permalink
Fix default compute thread priority
Browse files Browse the repository at this point in the history
bug 16651474

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

Change-Id: I0dd9a230ce8ceba64e971b024cbe518927cd2550
  • Loading branch information
Jason Sams authored and Chairshot215 committed Jan 23, 2015
1 parent be42994 commit e6beb13
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rs/java/android/renderscript/RenderScript.java
Expand Up @@ -1040,8 +1040,10 @@ public RSErrorHandler getErrorHandler() {
* 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) {
Expand Down

0 comments on commit e6beb13

Please sign in to comment.