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

Commit 231df77e authored by Jason Sams's avatar Jason Sams Committed by Gerrit Code Review
Browse files

Merge "Fix default compute thread priority"

parents 081cda87 c9870c14
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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) {