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

Commit aa43a0d5 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Skip unnecessary redraw request for sync"

parents 575b3ca5 e20d2b0e
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -6126,9 +6126,10 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
        if (mRedrawForSyncReported) {
            return false;
        }
        if (mInRelayout && mPrepareSyncSeqId > 0) {
            // The last sync seq id will return to the client, so there is no need to request the
            // client to redraw.
        if (mInRelayout && (mPrepareSyncSeqId > 0 || (mViewVisibility == View.VISIBLE
                && mWinAnimator.mDrawState == DRAW_PENDING))) {
            // The client will report draw if it gets the sync seq id from relayout or it is
            // drawing for being visible, then no need to request redraw.
            return false;
        }
        return useBLASTSync();