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
parent 0868d78991
commit 76aef326b1

View File

@ -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;
}