зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1143806: Tolerate timeouts occurring if a device driver is in the process of resetting. r=jrmuizel
This commit is contained in:
Родитель
8e1c6d1cd8
Коммит
7f7ef584ca
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче