Merge "Avoid extraneous EGL surface allocations Bug #8667873" into jb-mr2-dev
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user