Cache soft focus shadows and compare TV rendering performance

This commit is contained in:
Elijah Kuntz 2026-10-19 10:01:28 -07:00
parent 1f69422354
commit 5bb15fa69e
11 changed files with 85 additions and 17 deletions

View file

@ -189,6 +189,12 @@ public final class WakeRegressionInstrumentation extends Instrumentation {
callActivityOnPause(activity);
callActivityOnStop(activity);
try {
for (Object tile : ((Map<?, ?>) field(activity, "tiles")).values()) {
android.animation.ValueAnimator shadow =
(android.animation.ValueAnimator) field(tile, "shadowAnimation");
if (shadow != null && shadow.isRunning())
throw new AssertionError("focus shadow still animating after stop");
}
Object scene = field(activity, "scene");
for (String name : new String[] {"wallpaper", "mediaArt", "frame", "previousFrame"})
if (field(scene, name) != null)