mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 1490528 - do not preload attachments for D3D11 Non-WR compositor when WR is used r=mattwoodrow
This commit is contained in:
parent
0868d78991
commit
76aef326b1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user