зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1418877 - Fix key reuse check in AsyncImagePipelineManager::UpdateImageKeys() r=nical
This commit is contained in:
Родитель
e90c0fb0e0
Коммит
8238c315e7
|
@ -181,6 +181,7 @@ AsyncImagePipelineManager::UpdateImageKeys(wr::ResourceUpdateQueue& aResources,
|
|||
// If we already had a texture and the format hasn't changed, better to reuse the image keys
|
||||
// than create new ones.
|
||||
bool canUpdate = !!previousTexture
|
||||
&& previousTexture->GetSize() == texture->GetSize()
|
||||
&& previousTexture->GetFormat() == texture->GetFormat()
|
||||
&& aPipeline->mKeys.Length() == numKeys;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче