Don't elevate priority for devices below Q (#4331)
* Don't elevate priority for devices below Q EGL_CONTEXT_PRIORITY_HIGH_IMG doesn't exist for Android below Q and Lawnchair Launcher don't support QuickSwitch for Android Q anyway, the effect should have no effect on daily usage. Signed-off-by: Pun Butrach <pun.butrach@gmail.com> * Update quickstep/src/com/android/quickstep/QuickstepProcessInitializer.java * Use AtLeast check from Launcher3's Utilities Signed-off-by: Pun Butrach <pun.butrach@gmail.com> * Update quickstep/src/com/android/quickstep/QuickstepProcessInitializer.java Co-authored-by: Zongle Wang <wangzongler@gmail.com> --------- Signed-off-by: Pun Butrach <pun.butrach@gmail.com> Co-authored-by: Zongle Wang <wangzongler@gmail.com>
This commit is contained in:
co-authored by
Zongle Wang
parent
c6d35bea3d
commit
752c3757b1
@@ -27,6 +27,7 @@ import android.view.ThreadedRenderer;
|
||||
|
||||
import com.android.launcher3.BuildConfig;
|
||||
import com.android.launcher3.MainProcessInitializer;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.systemui.shared.system.InteractionJankMonitorWrapper;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@@ -64,6 +65,7 @@ public class QuickstepProcessInitializer extends MainProcessInitializer {
|
||||
|
||||
// Elevate GPU priority for Quickstep and Remote animations.
|
||||
try {
|
||||
if (!Utilities.ATLEAST_Q) return;
|
||||
ThreadedRenderer.setContextPriority(
|
||||
ThreadedRenderer.EGL_CONTEXT_PRIORITY_HIGH_IMG);
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user