зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1771344 - Add TextureClient::IsValid() check to PersistentBufferProviderShared::SetKnowsCompositor() r=gfx-reviewers,lsalzman
Device reset in test_device_reset.html replaces CompositorBridgeChild to a new one. And shutting down old CompositorBridgeChild also destroys TextureClients. Differential Revision: https://phabricator.services.mozilla.com/D164175
This commit is contained in:
Родитель
5fd296e7b8
Коммит
67f424d382
|
@ -257,7 +257,7 @@ bool PersistentBufferProviderShared::SetKnowsCompositor(
|
|||
// Get rid of everything else
|
||||
Destroy();
|
||||
|
||||
if (prevTexture) {
|
||||
if (prevTexture && prevTexture->IsValid()) {
|
||||
RefPtr<TextureClient> newTexture =
|
||||
CreateTexture(aKnowsCompositor, mFormat, mSize, mWillReadFrequently);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче