Bug 845147 - Don't decode images synchronously if we've decoded them once before. r=joedrew

This commit is contained in:
Justin Lebar 2013-06-04 17:05:54 -05:00
parent 0a654b9497
commit a814ad50fc

View File

@ -2316,7 +2316,10 @@ RasterImage::RequestDecode()
NS_IMETHODIMP
RasterImage::StartDecoding()
{
return RequestDecodeCore(SYNCHRONOUS_NOTIFY_AND_SOME_DECODE);
// Here we are explicitly trading off flashing for responsiveness in the case
// that we're redecoding an image (see bug 845147).
return RequestDecodeCore(//mHasBeenDecoded ?
SYNCHRONOUS_NOTIFY /*: SYNCHRONOUS_NOTIFY_AND_SOME_DECODE*/);
}
bool