зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 169b7053b22d (bug 1167235)
This commit is contained in:
Родитель
f7ee3c3dbf
Коммит
92c1ecdea3
|
@ -113,15 +113,6 @@ CompositorBridgeChild::Destroy()
|
|||
layers->Destroy();
|
||||
}
|
||||
|
||||
const ManagedContainer<PTextureChild>& textures = ManagedPTextureChild();
|
||||
for (auto iter = textures.ConstIter(); !iter.Done(); iter.Next()) {
|
||||
RefPtr<TextureClient> texture = TextureClient::AsTextureClient(iter.Get()->GetKey());
|
||||
|
||||
if (texture) {
|
||||
texture->Destroy();
|
||||
}
|
||||
}
|
||||
|
||||
SendWillClose();
|
||||
mCanSend = false;
|
||||
|
||||
|
@ -137,6 +128,16 @@ CompositorBridgeChild::Destroy()
|
|||
// From now on we can't send any message message.
|
||||
MessageLoop::current()->PostTask(
|
||||
NewRunnableFunction(DeferredDestroyCompositor, mCompositorBridgeParent, selfRef));
|
||||
|
||||
const ManagedContainer<PTextureChild>& textures = ManagedPTextureChild();
|
||||
for (auto iter = textures.ConstIter(); !iter.Done(); iter.Next()) {
|
||||
RefPtr<TextureClient> texture = TextureClient::AsTextureClient(iter.Get()->GetKey());
|
||||
|
||||
if (texture) {
|
||||
texture->Destroy();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// static
|
||||
|
|
Загрузка…
Ссылка в новой задаче