зеркало из https://github.com/mozilla/gecko-dev.git
Bug 944353. If we've encountered an error while decoding an image and the main thread has asked to do more decoding of that image before the main thread has acknowledged the error then refuse to decode more. r=seth
This commit is contained in:
Родитель
ce84411c22
Коммит
520961becf
|
@ -3360,6 +3360,11 @@ RasterImage::DecodePool::DecodeSomeOfImage(RasterImage* aImg,
|
|||
if (aImg->mError)
|
||||
return NS_OK;
|
||||
|
||||
// If there is an error worker pending (say because the main thread has enqueued
|
||||
// another decode request for us before processing the error worker) then bail out.
|
||||
if (aImg->mPendingError)
|
||||
return NS_OK;
|
||||
|
||||
// If mDecoded or we don't have a decoder, we must have finished already (for
|
||||
// example, a synchronous decode request came while the worker was pending).
|
||||
if (!aImg->mDecoder || aImg->mDecoded)
|
||||
|
|
Загрузка…
Ссылка в новой задаче