Bug 1362839 - Handle GPU resets more gracefully. r=sotaro

This commit is contained in:
Andrew Osmond 2017-05-15 08:23:30 -04:00
Родитель 7accd1c409
Коммит 5317ca1f27
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -324,6 +324,11 @@ WebRenderBridgeChild::AddOpDestroy(const OpDestroy& aOp)
void
WebRenderBridgeChild::ReleaseCompositable(const CompositableHandle& aHandle)
{
if (!IPCOpen()) {
// This can happen if the IPC connection was torn down, because, e.g.
// the GPU process died.
return;
}
if (!DestroyInTransaction(aHandle)) {
SendReleaseCompositable(aHandle);
}