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

Commit 13dfcd1f authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Dejank: also animate window moves due to requested size changes."

parents 4faaed97 1743b64d
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -100,6 +100,8 @@ final class WindowState implements WindowManagerPolicy.WindowState,
     */
    int mRequestedWidth;
    int mRequestedHeight;
    int mLastRequestedWidth;
    int mLastRequestedHeight;

    int mLayer;
    int mAnimLayer;
@@ -391,6 +393,8 @@ final class WindowState implements WindowManagerPolicy.WindowState,
        mSurface = null;
        mRequestedWidth = 0;
        mRequestedHeight = 0;
        mLastRequestedWidth = 0;
        mLastRequestedHeight = 0;
        mXOffset = 0;
        mYOffset = 0;
        mLayer = 0;
@@ -458,6 +462,11 @@ final class WindowState implements WindowManagerPolicy.WindowState,
            mParentFrame.set(pf);
            mContentChanged = true;
        }
        if (mRequestedWidth != mLastRequestedWidth || mRequestedHeight != mLastRequestedHeight) {
            mLastRequestedWidth = mRequestedWidth;
            mLastRequestedHeight = mRequestedHeight;
            mContentChanged = true;
        }

        final Rect content = mContentFrame;
        content.set(cf);
@@ -1701,6 +1710,10 @@ final class WindowState implements WindowManagerPolicy.WindowState,
        pw.print(prefix); pw.print("Requested w="); pw.print(mRequestedWidth);
                pw.print(" h="); pw.print(mRequestedHeight);
                pw.print(" mLayoutSeq="); pw.println(mLayoutSeq);
        if (mRequestedWidth != mLastRequestedWidth || mRequestedHeight != mLastRequestedHeight) {
            pw.print(prefix); pw.print("LastRequested w="); pw.print(mLastRequestedWidth);
                    pw.print(" h="); pw.println(mLastRequestedHeight);
        }
        if (mAttachedWindow != null || mLayoutAttached) {
            pw.print(prefix); pw.print("mAttachedWindow="); pw.print(mAttachedWindow);
                    pw.print(" mLayoutAttached="); pw.println(mLayoutAttached);