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

Commit 8149f57b authored by Evan Rosky's avatar Evan Rosky
Browse files

Do position-update on current sync if sync active

If blast-sync is active, then the syncTransaction is already
"waiting" until the frame is drawn or we have just received
the new frame. Since this is the case, just put the position
on that same transaction instead of queueing up a redundant
redraw.

Bug: 228885074
Test: with shell-transitions, enter split with an auto-pip,
      then swipe-to-home.
Change-Id: Ib5629718a1cf50746e519dcdf7a633e6f5066527
parent 74ef154b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -5586,7 +5586,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
                mLastSurfaceInsets.set(mAttrs.surfaceInsets);
                mLastSurfaceInsets.set(mAttrs.surfaceInsets);
            }
            }
            if (surfaceSizeChanged && mWinAnimator.getShown() && !canPlayMoveAnimation()
            if (surfaceSizeChanged && mWinAnimator.getShown() && !canPlayMoveAnimation()
                    && okToDisplay()) {
                    && okToDisplay() && !useBLASTSync()) {
                applyWithNextDraw(mSetSurfacePositionConsumer);
                applyWithNextDraw(mSetSurfacePositionConsumer);
            } else {
            } else {
                mSetSurfacePositionConsumer.accept(t);
                mSetSurfacePositionConsumer.accept(t);