зеркало из https://github.com/mozilla/gecko-dev.git
Bug 856486 (Part 1) - Avoid asserts triggered by rapid off-main-thread decoding. r=jrmuizel
This commit is contained in:
Родитель
0284246329
Коммит
4d5dd53b5e
|
@ -2817,7 +2817,7 @@ RasterImage::RequestDecodeCore(RequestDecodeType aDecodeType)
|
|||
// data, so signal that we want a full decode and give up for now.
|
||||
if (!mHasSize) {
|
||||
mWantFullDecode = true;
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3525,7 +3525,8 @@ RasterImage::FinishedSomeDecoding(eShutdownIntent aIntent /* = eShutdownIntent_D
|
|||
}
|
||||
|
||||
// If we were a size decode and a full decode was requested, now's the time.
|
||||
if (NS_SUCCEEDED(rv) && done && wasSize && image->mWantFullDecode) {
|
||||
if (NS_SUCCEEDED(rv) && aIntent != eShutdownIntent_Error && done &&
|
||||
wasSize && image->mWantFullDecode) {
|
||||
image->mWantFullDecode = false;
|
||||
|
||||
// If we're not meant to be storing source data and we just got the size,
|
||||
|
|
Загрузка…
Ссылка в новой задаче