Adds gpuLoadUp calls for Launcher blur preparation.

Basically the same places we were notifying expensive frames.

Test: forrest perf suites
Flag: com.android.launcher3.all_apps_blur
Bug: 410973453
Change-Id: Ifb8ee7010e0faacc9ccc21076fc8614f335e2863
This commit is contained in:
Andy Wickham committed 2025-05-05 19:46:49 +00:00
1 parent 1ca1bf9c9d
commit 1d8676a965
4 files changed
+20

No files matched your search

@@ -15,6 +15,8 @@
*/
package com.android.launcher3.taskbar.allapps;
import static android.os.Trace.TRACE_TAG_APP;
import static com.android.app.animation.Interpolators.DECELERATED_EASE;
import static com.android.app.animation.Interpolators.EMPHASIZED;
import static com.android.app.animation.Interpolators.LINEAR;
@@ -28,6 +30,7 @@ import android.graphics.Canvas;
import android.graphics.Rect;
import android.os.Handler;
import android.os.Looper;
import android.os.Trace;
import android.util.AttributeSet;
import android.util.Log;
import android.view.CrossWindowBlurListeners;
@@ -116,6 +119,8 @@ public class TaskbarAllAppsSlideInView extends AbstractSlideInView<TaskbarOverla
if (overlayVri == null) {
Log.w(TAG, "overlayVRI is null, cannot notifyRendererOfExpensiveFrame()");
} else {
Trace.instantForTrack(TRACE_TAG_APP, TAG, "notifyRendererForGpuLoadUp");
overlayVri.notifyRendererForGpuLoadUp("opening taskbar all apps");
overlayVri.notifyRendererOfExpensiveFrame();
}
}