Back out 0839c57106a8. Caused a regression; follow up will address. r=dougt

--HG--
extra : rebase_source : c9aa1dac6480a41ce147e641f675b090b8cc5427
This commit is contained in:
Doug Turner 2011-06-25 21:34:10 -07:00
Родитель 916d57cf51
Коммит 9b5a8f0398
1 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -176,18 +176,15 @@ 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 &&
!invalidSize &&
(mSoftwareBitmap != null || mSoftwareBuffer != null) &&
GeckoApp.checkLaunchState(GeckoApp.LaunchState.GeckoRunning);
mSyncDraw = doSyncDraw;
@ -205,7 +202,7 @@ class GeckoSurfaceView
metrics.widthPixels, metrics.heightPixels);
GeckoAppShell.sendEventToGecko(e);
if (!invalidSize)
if (mSoftwareBitmap != null || mSoftwareBuffer != null)
GeckoAppShell.scheduleRedraw();
if (!doSyncDraw) {