mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
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:
parent
027f71e3dd
commit
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:
|
||||
|
Loading…
Reference in New Issue
Block a user