Bug 1816053 - Add log to VideoBridgeParent::ActorDestroy() r=gfx-reviewers,lsalzman

It would be helpful if VideoBridgeParent::ActorDestroy() has a log of AbnormalShutdown.

Differential Revision: https://phabricator.services.mozilla.com/D169418
This commit is contained in:
sotaro 2023-02-13 21:46:54 +00:00
Родитель b202f0ce19
Коммит 44e635d2e6
2 изменённых файлов: 6 добавлений и 1 удалений

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

@ -314,7 +314,8 @@ void CompositorBridgeChild::ActorDestroy(ActorDestroyReason aWhy) {
// If the parent side runs into a problem then the actor will be destroyed.
// There is nothing we can do in the child side, here sets mCanSend as
// false.
gfxCriticalNote << "Receive IPC close with reason=AbnormalShutdown";
gfxCriticalNote << "CompositorBridgeChild receives IPC close with "
"reason=AbnormalShutdown";
}
mCanSend = false;

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

@ -90,6 +90,10 @@ TextureHost* VideoBridgeParent::LookupTexture(uint64_t aSerial) {
}
void VideoBridgeParent::ActorDestroy(ActorDestroyReason aWhy) {
if (aWhy == AbnormalShutdown) {
gfxCriticalNote
<< "VideoBridgeParent receives IPC close with reason=AbnormalShutdown";
}
// Can't alloc/dealloc shmems from now on.
mClosed = true;
}