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

Commit e3a5ed72 authored by Jorge Gil's avatar Jorge Gil
Browse files

Add frame timeline to veil surfaces in maximize CUJ

To show expected/actual frames for the veil's background and icon during
the maximize/restore CUJ.

Flag: EXEMPT bugfix
Fix: 369365149
Test: verify perfetto trace shows expected and actual frames for these
two surfaces

Change-Id: I6f67a4298ea752eb5474d384eca56d5d20859aa3
parent 7e1bc07d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import android.animation.RectEvaluator
import android.animation.ValueAnimator
import android.graphics.Rect
import android.os.IBinder
import android.view.Choreographer
import android.view.SurfaceControl
import android.view.WindowManager.TRANSIT_CHANGE
import android.window.TransitionInfo
@@ -126,6 +127,7 @@ class ToggleResizeDesktopTaskTransitionHandler(
                        tx.setPosition(leash, rect.left.toFloat(), rect.top.toFloat())
                            .setWindowCrop(leash, rect.width(), rect.height())
                            .show(leash)
                            .setFrameTimeline(Choreographer.getInstance().getVsyncId())
                        onTaskResizeAnimationListener.onBoundsChange(taskId, tx, rect)
                    }
                    start()