Bug 1317559. Make image layer related functions that may be called during paint ask for async image notifications. r=aosmond

This commit is contained in:
Timothy Nikkel 2016-11-24 23:48:04 -06:00
Родитель 540b0b2753
Коммит 3468111c94
2 изменённых файлов: 8 добавлений и 6 удалений

Просмотреть файл

@ -1643,9 +1643,10 @@ nsDisplayImage::BuildLayer(nsDisplayListBuilder* aBuilder,
LayerManager* aManager,
const ContainerLayerParameters& aParameters)
{
uint32_t flags = aBuilder->ShouldSyncDecodeImages()
? imgIContainer::FLAG_SYNC_DECODE
: imgIContainer::FLAG_NONE;
uint32_t flags = imgIContainer::FLAG_ASYNC_NOTIFY;
if (aBuilder->ShouldSyncDecodeImages()) {
flags |= imgIContainer::FLAG_SYNC_DECODE;
}
RefPtr<ImageContainer> container =
mImage->GetImageContainer(aManager, flags);

Просмотреть файл

@ -3497,9 +3497,10 @@ nsDisplayImageContainer::GetContainer(LayerManager* aManager,
return nullptr;
}
uint32_t flags = aBuilder->ShouldSyncDecodeImages()
? imgIContainer::FLAG_SYNC_DECODE
: imgIContainer::FLAG_NONE;
uint32_t flags = imgIContainer::FLAG_ASYNC_NOTIFY;
if (aBuilder->ShouldSyncDecodeImages()) {
flags |= imgIContainer::FLAG_SYNC_DECODE;
}
return image->GetImageContainer(aManager, flags);
}