зеркало из https://github.com/mozilla/pjs.git
Back out 0839c57106a8. Caused a regression; follow up will address. r=dougt
--HG-- extra : rebase_source : c9aa1dac6480a41ce147e641f675b090b8cc5427
This commit is contained in:
Родитель
916d57cf51
Коммит
9b5a8f0398
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче