Bug 1143806: Tolerate timeouts occurring if a device driver is in the process of resetting. r=jrmuizel

This commit is contained in:
Bas Schouten 2015-04-24 17:09:42 +02:00
Родитель 8e1c6d1cd8
Коммит 7f7ef584ca
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -1014,6 +1014,10 @@ SyncObjectD3D11::FinalizeFrame()
hr = mutex->AcquireSync(0, 20000);
if (hr == WAIT_TIMEOUT) {
if (gfxWindowsPlatform::GetPlatform()->DidRenderingDeviceReset()) {
gfxWarning() << "AcquireSync timed out because of device reset.";
return;
}
MOZ_CRASH();
}
@ -1038,6 +1042,10 @@ SyncObjectD3D11::FinalizeFrame()
hr = mutex->AcquireSync(0, 20000);
if (hr == WAIT_TIMEOUT) {
if (gfxWindowsPlatform::GetPlatform()->DidRenderingDeviceReset()) {
gfxWarning() << "AcquireSync timed out because of device reset.";
return;
}
MOZ_CRASH();
}