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

Commit aa7f023f authored by Steve Kondik's avatar Steve Kondik
Browse files

perf: Boost during animations

 * Reduce animation jank by preemptively boostin the CPUs.
 * Original idea taken from CodeAurora, modified for CM perf control.

Change-Id: Iff8f008117beb381c6667a268d1dd83d8c9e4cdf
parent cc8385bd
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1738,6 +1738,9 @@ final class ActivityStack {
                    mWindowManager.prepareAppTransition(prev.task == next.task
                            ? AppTransition.TRANSIT_ACTIVITY_CLOSE
                            : AppTransition.TRANSIT_TASK_CLOSE, false);
                    if (prev.task != next.task) {
                        mStackSupervisor.mPm.cpuBoost(2000 * 1000);
                    }
                }
                mWindowManager.setAppWillBeHidden(prev.appToken);
                mWindowManager.setAppVisibility(prev.appToken, false);
@@ -1752,6 +1755,9 @@ final class ActivityStack {
                            : next.mLaunchTaskBehind
                                    ? AppTransition.TRANSIT_TASK_OPEN_BEHIND
                                    : AppTransition.TRANSIT_TASK_OPEN, false);
                    if (prev.task != next.task) {
                        mStackSupervisor.mPm.cpuBoost(2000 * 1000);
                    }
                }
            }
            if (false) {