зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1673983 - Preload d3d11 attachments for CompositorD3D11 if we might use it with software WebRender. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D95980
This commit is contained in:
Родитель
d3116d3c9e
Коммит
af301ad5db
|
@ -314,7 +314,7 @@ bool DeviceManagerDx::CreateCompositorDevices() {
|
||||||
// Fallback from WR to D3D11 Non-WR compositor without re-creating gpu process
|
// 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
|
// could happen when WR causes error. In this case, the attachments are loaded
|
||||||
// synchronously.
|
// synchronously.
|
||||||
if (!gfx::gfxVars::UseWebRender()) {
|
if (!gfx::gfxVars::UseWebRender() || gfx::gfxVars::UseSoftwareWebRender()) {
|
||||||
PreloadAttachmentsOnCompositorThread();
|
PreloadAttachmentsOnCompositorThread();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1429,7 +1429,8 @@ void DeviceManagerDx::PreloadAttachmentsOnCompositorThread() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool enableAL = gfxConfig::IsEnabled(Feature::ADVANCED_LAYERS);
|
bool enableAL = gfxConfig::IsEnabled(Feature::ADVANCED_LAYERS) &&
|
||||||
|
!gfx::gfxVars::UseSoftwareWebRender();
|
||||||
|
|
||||||
RefPtr<Runnable> task = NS_NewRunnableFunction(
|
RefPtr<Runnable> task = NS_NewRunnableFunction(
|
||||||
"DeviceManagerDx::PreloadAttachmentsOnCompositorThread",
|
"DeviceManagerDx::PreloadAttachmentsOnCompositorThread",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче