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

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

Merge "Finish sync for relayout a drawn window" into tm-qpr-dev

parents fb3ae632 0078150d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2587,6 +2587,12 @@ public class WindowManagerService extends IWindowManager.Stub
                        && win.mSyncSeqId > lastSyncSeqId) {
                    maybeSyncSeqId = win.shouldSyncWithBuffers() ? win.mSyncSeqId : -1;
                    win.markRedrawForSyncReported();
                    if (win.mSyncState == WindowContainer.SYNC_STATE_WAITING_FOR_DRAW
                            && winAnimator.mDrawState == WindowStateAnimator.HAS_DRAWN
                            && maybeSyncSeqId < 0) {
                        // Do not wait for a drawn window which won't report draw.
                        win.onSyncFinishedDrawing();
                    }
                } else {
                    maybeSyncSeqId = -1;
                }