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

Commit caf2afc1 authored by John Spurlock's avatar John Spurlock Committed by Android Git Automerger
Browse files

am 8d87227c: am 0ab7d4d1: Merge "Remove Rect allocation in each layout pass." into klp-dev

* commit '8d87227c':
  Remove Rect allocation in each layout pass.
parents e4039cc6 8d87227c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -416,6 +416,7 @@ public class WindowManagerService extends IWindowManager.Stub
    int mFocusedStackLayer;

    final float[] mTmpFloats = new float[9];
    final Rect mTmpContentRect = new Rect();

    boolean mDisplayReady;
    boolean mSafeMode;
@@ -8172,9 +8173,8 @@ public class WindowManagerService extends IWindowManager.Stub
            mScreenRect.set(0, 0, dw, dh);
        }

        Rect contentRect = new Rect();
        mPolicy.getContentRectLw(contentRect);
        displayContent.setStackBoxSize(contentRect);
        mPolicy.getContentRectLw(mTmpContentRect);
        displayContent.setStackBoxSize(mTmpContentRect);

        int seq = mLayoutSeq+1;
        if (seq < 0) seq = 0;