зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1368776 - Part 17. Fix how we could reuse an incorrect image container instead of creating a new one. r=me
This commit is contained in:
Родитель
027f71e3dd
Коммит
d9067a16fe
|
@ -125,10 +125,14 @@ ImageResource::GetImageContainerImpl(LayerManager* aManager,
|
|||
} else if (!container) {
|
||||
// Stop tracking if our weak pointer to the image container was freed.
|
||||
mImageContainers.RemoveElementAt(i);
|
||||
} else {
|
||||
// It isn't a match, but still valid. Forget the container so we don't
|
||||
// try to reuse it below.
|
||||
container = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
if (i >= 0 && container) {
|
||||
if (container) {
|
||||
switch (entry->mLastDrawResult) {
|
||||
case DrawResult::SUCCESS:
|
||||
case DrawResult::BAD_IMAGE:
|
||||
|
|
Загрузка…
Ссылка в новой задаче