Merge "Correctly set the viewport on window resize."

This commit is contained in:
Romain Guy
2010-09-07 17:17:12 -07:00
committed by Android (Google) Code Review
4 changed files with 108 additions and 2 deletions

View File

@@ -946,8 +946,8 @@ public final class ViewRoot extends Handler implements ViewParent, View.AttachIn
mSurfaceHolder.mSurfaceLock.unlock();
}
}
if (hwIntialized) {
if (hwIntialized || (windowShouldResize && mHwRenderer != null)) {
mHwRenderer.setup(mWidth, mHeight);
}