mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-28 11:28:38 +00:00
Bug 897452 - Part 8 - fix TextureParent::ActorDestroy - r=nical
This commit is contained in:
parent
c590710a23
commit
0d718a571c
@ -675,21 +675,23 @@ TextureParent::RecvRemoveTextureSync()
|
||||
void
|
||||
TextureParent::ActorDestroy(ActorDestroyReason why)
|
||||
{
|
||||
if (!mTextureHost) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (why) {
|
||||
case AncestorDeletion:
|
||||
NS_WARNING("PTexture deleted after ancestor");
|
||||
// fall-through to deletion path
|
||||
case Deletion:
|
||||
if (mTextureHost && mTextureHost->GetFlags() & !TEXTURE_DEALLOCATE_CLIENT) {
|
||||
if (!(mTextureHost->GetFlags() & TEXTURE_DEALLOCATE_CLIENT)) {
|
||||
mTextureHost->DeallocateSharedData();
|
||||
}
|
||||
break;
|
||||
|
||||
case NormalShutdown:
|
||||
case AbnormalShutdown:
|
||||
if (mTextureHost) {
|
||||
mTextureHost->OnActorDestroy();
|
||||
}
|
||||
mTextureHost->OnActorDestroy();
|
||||
break;
|
||||
|
||||
case FailedConstructor:
|
||||
|
Loading…
Reference in New Issue
Block a user