Merge "Avoid extraneous EGL surface allocations Bug #8667873" into jb-mr2-dev

This commit is contained in:
Romain Guy
2013-05-22 02:08:24 +00:00
committed by Android (Google) Code Review

View File

@@ -1639,7 +1639,7 @@ public final class ViewRootImpl implements ViewParent,
if (mAttachInfo.mHardwareRenderer != null &&
mAttachInfo.mHardwareRenderer.isEnabled()) {
if (hwInitialized || windowShouldResize ||
if (hwInitialized ||
mWidth != mAttachInfo.mHardwareRenderer.getWidth() ||
mHeight != mAttachInfo.mHardwareRenderer.getHeight()) {
mAttachInfo.mHardwareRenderer.setup(mWidth, mHeight);