Bug 1490528 - do not preload attachments for D3D11 Non-WR compositor when WR is used r=mattwoodrow

This commit is contained in:
sotaro 2018-09-13 13:23:38 +09:00
Родитель 0868d78991
Коммит 76aef326b1
1 изменённых файлов: 9 добавлений и 1 удалений

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

@ -201,7 +201,15 @@ DeviceManagerDx::CreateCompositorDevices()
return false;
}
PreloadAttachmentsOnCompositorThread();
// When WR is used, do not preload attachments for D3D11 Non-WR compositor.
//
// Fallback from WR to D3D11 Non-WR compositor without re-creating gpu process
// could happen when WR causes error. In this case, the attachments are loaded
// synchronously.
if (!gfx::gfxVars::UseWebRender()) {
PreloadAttachmentsOnCompositorThread();
}
return true;
}