зеркало из https://github.com/mozilla/gecko-dev.git
As a temporary stopgap fix for issues with GDI handles on Windows, don't optimize images at all. Patch by jdunn@maine.rr.com, r=smontagu, sr=tor, a=asa.
This commit is contained in:
Родитель
61b59a3c41
Коммит
d1ef21e542
|
@ -1345,6 +1345,20 @@ PRBool nsImageWin::CanAlphaBlend(void)
|
|||
nsresult
|
||||
nsImageWin :: Optimize(nsIDeviceContext* aContext)
|
||||
{
|
||||
#define DONT_OPTIMIZE 1
|
||||
#ifdef DONT_OPTIMIZE
|
||||
// XXX
|
||||
// see bug 205893 & bug 204374
|
||||
// With the increase memory cache size, we hold to many images.
|
||||
// Every image is also holding onto a GDI HBITMAP which hurts
|
||||
// system performance. So until we can get a handle on the
|
||||
// situation lets just NOT optimize.
|
||||
// NOTE the previous patch (127547) in bug 205893 doesn't fix the
|
||||
// problem reported by bug 184933 so I suggest going with NEVER
|
||||
// optimizing for now
|
||||
|
||||
return NS_OK;
|
||||
#else
|
||||
// we used to set a flag because a valid HDC may not be ready,
|
||||
// like at startup, but now we just roll our own HDC for the given screen.
|
||||
|
||||
|
@ -1393,6 +1407,7 @@ nsImageWin :: Optimize(nsIDeviceContext* aContext)
|
|||
}
|
||||
|
||||
return NS_OK;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче