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

* commit '0ab7d4d1a114b888889862ec7a5e2dc3bcd23fa5':
  Remove Rect allocation in each layout pass.
This commit is contained in:
John Spurlock
2013-09-24 14:19:19 -07:00
committed by Android Git Automerger

View File

@@ -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;