Merge "Remove Rect allocation in each layout pass." into klp-dev
diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java
index 9d26670..e330f8b 100644
--- a/services/java/com/android/server/wm/WindowManagerService.java
+++ b/services/java/com/android/server/wm/WindowManagerService.java
@@ -416,6 +416,7 @@
int mFocusedStackLayer;
final float[] mTmpFloats = new float[9];
+ final Rect mTmpContentRect = new Rect();
boolean mDisplayReady;
boolean mSafeMode;
@@ -8172,9 +8173,8 @@
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;