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 cdfba8c17a
commit 430d1c2913

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;