зеркало из https://github.com/mozilla/gecko-dev.git
Bug 925324. For abnormal shutdowns, only abort on b2g. r=sotaro
This commit is contained in:
Родитель
c87cf7ee4d
Коммит
574e1a5848
|
@ -101,9 +101,15 @@ CompositorChild::ActorDestroy(ActorDestroyReason aWhy)
|
|||
{
|
||||
MOZ_ASSERT(sCompositor == this);
|
||||
|
||||
#ifdef MOZ_B2G
|
||||
// Due to poor lifetime management of gralloc (and possibly shmems) we will
|
||||
// crash at some point in the future when we get destroyed due to abnormal
|
||||
// shutdown. Its better just to crash here. On desktop though, we have a chance
|
||||
// of recovering.
|
||||
if (aWhy == AbnormalShutdown) {
|
||||
NS_RUNTIMEABORT("ActorDestroy by IPC channel failure at CompositorChild");
|
||||
}
|
||||
#endif
|
||||
|
||||
sCompositor = nullptr;
|
||||
// We don't want to release the ref to sCompositor here, during
|
||||
|
|
|
@ -85,9 +85,15 @@ LayerTransactionChild::DeallocPCompositableChild(PCompositableChild* actor)
|
|||
void
|
||||
LayerTransactionChild::ActorDestroy(ActorDestroyReason why)
|
||||
{
|
||||
#ifdef MOZ_B2G
|
||||
// Due to poor lifetime management of gralloc (and possibly shmems) we will
|
||||
// crash at some point in the future when we get destroyed due to abnormal
|
||||
// shutdown. Its better just to crash here. On desktop though, we have a chance
|
||||
// of recovering.
|
||||
if (why == AbnormalShutdown) {
|
||||
NS_RUNTIMEABORT("ActorDestroy by IPC channel failure at LayerTransactionChild");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace layers
|
||||
|
|
Загрузка…
Ссылка в новой задаче