зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
540b0b2753
Коммит
3468111c94
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче