Backed out changeset 169b7053b22d (bug 1167235)

This commit is contained in:
Sebastian Hengst 2016-06-28 20:28:22 +02:00
Родитель f7ee3c3dbf
Коммит 92c1ecdea3
1 изменённых файлов: 10 добавлений и 9 удалений

Просмотреть файл

@ -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