Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf109c59 authored by Jason Sams's avatar Jason Sams Committed by Android Git Automerger
Browse files

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

* commit 'de56e38e':
  Fix default compute thread priority
parents 305b8c47 de56e38e
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -1047,8 +1047,10 @@ public class RenderScript {
     * their priority to LOW to avoid starving forground processes.
     * their priority to LOW to avoid starving forground processes.
     */
     */
    public enum Priority {
    public enum Priority {
        LOW (Process.THREAD_PRIORITY_BACKGROUND + (5 * Process.THREAD_PRIORITY_LESS_FAVORABLE)),
        // These values used to represent official thread priority values
        NORMAL (Process.THREAD_PRIORITY_DISPLAY);
        // now they are simply enums to be used by the runtime side
        LOW (15),
        NORMAL (-8);


        int mID;
        int mID;
        Priority(int id) {
        Priority(int id) {