Bug 599397 - Avoid locking when not painting to avoid black flash, r=vlad a=blocking-fennec

This commit is contained in:
Michael Wu 2010-10-12 16:20:45 -07:00
parent 0a2087f784
commit 713e3d1c23

View File

@ -212,6 +212,8 @@ class GeckoSurfaceView
GeckoApp.mAppContext.mProgressDialog.dismiss();
GeckoApp.mAppContext.mProgressDialog = null;
}
if (buffer != mSoftwareBuffer)
return;
Canvas c = getHolder().lockCanvas();
if (c == null)
return;