Bug 664996 - After quitting the application by tapping the Home button, re-entering it will show a white. Regression from bug 661843. r=dougt

This commit is contained in:
Chris Lord 2011-06-17 08:57:46 -07:00
parent 12c71e7bf0
commit 85b99d29a0

View File

@ -176,15 +176,18 @@ class GeckoSurfaceView
Log.w("GeckoAppJava", "surfaceChanged while mInDrawing is true!");
}
boolean invalidSize = false;
if (width == 0 || height == 0) {
mSoftwareBitmap = null;
mSoftwareBuffer = null;
mSoftwareBufferCopy = null;
invalidSize = true;
}
boolean doSyncDraw =
mDrawMode == DRAW_2D &&
(mSoftwareBitmap != null || mSoftwareBuffer != null) &&
!invalidSize &&
GeckoApp.checkLaunchState(GeckoApp.LaunchState.GeckoRunning);
mSyncDraw = doSyncDraw;
@ -202,7 +205,7 @@ class GeckoSurfaceView
metrics.widthPixels, metrics.heightPixels);
GeckoAppShell.sendEventToGecko(e);
if (mSoftwareBitmap != null || mSoftwareBuffer != null)
if (!invalidSize)
GeckoAppShell.scheduleRedraw();
if (!doSyncDraw) {