0

Fix explicitly requesting D3D11 WARP by the command line.

The --use-angle=d3d11-warp flag was not working without also enabling
the AllowD3D11WarpFallback feature, the flags for warp and swiftshader
would both be added to the command line.

Clean up logic for setting software GL command line arguments from the
browser process and respect the requested GL implementation if one is
provided by command line.

Bug: 402163834
Change-Id: I8fdea87be0ce957df6fd33cf3d8f0aed3891c4da
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6377726
Reviewed-by: Zhenyao Mo <zmo@chromium.org>
Commit-Queue: Geoff Lang <geofflang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1436956}
This commit is contained in:
Geoff Lang
2025-03-24 10:46:26 -07:00
committed by Chromium LUCI CQ
parent e2c2030794
commit b5ce6f437f
5 changed files with 32 additions and 9 deletions

@ -1315,7 +1315,10 @@ void GpuDataManagerImplPrivate::AppendGpuCommandLine(
use_gl = browser_command_line->GetSwitchValueASCII(switches::kUseGL);
break;
case gpu::GpuMode::SOFTWARE_GL:
gl::SetSoftwareWebGLCommandLineSwitches(command_line);
if (!gl::HasRequestedSoftwareGLImplementationFromCommandLine(
command_line)) {
gl::SetSoftwareWebGLCommandLineSwitches(command_line);
}
break;
default:
use_gl = gl::kGLImplementationDisabledName;