| Index: content/browser/gpu/gpu_data_manager_impl_private.cc
|
| diff --git a/content/browser/gpu/gpu_data_manager_impl_private.cc b/content/browser/gpu/gpu_data_manager_impl_private.cc
|
| index d5e1dd9c13da2ddd33d6eda4832c31c27b02f8ee..d0a407bd5073238344b547341e82ce511f59536e 100644
|
| --- a/content/browser/gpu/gpu_data_manager_impl_private.cc
|
| +++ b/content/browser/gpu/gpu_data_manager_impl_private.cc
|
| @@ -412,8 +412,10 @@ void GpuDataManagerImplPrivate::RegisterSwiftShaderPath(
|
| }
|
|
|
| bool GpuDataManagerImplPrivate::ShouldUseWarp() const {
|
| - return use_warp_ ||
|
| - base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kUseWarp);
|
| + std::string angle_impl_flag =
|
| + base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
|
| + switches::kUseANGLE);
|
| + return use_warp_ || angle_impl_flag == gfx::kANGLEImplementationWARPName;
|
| }
|
|
|
| void GpuDataManagerImplPrivate::AddObserver(GpuDataManagerObserver* observer) {
|
| @@ -680,8 +682,10 @@ void GpuDataManagerImplPrivate::AppendGpuCommandLine(
|
| command_line->AppendSwitchASCII(switches::kGpuDriverVersion,
|
| gpu_info_.driver_version);
|
|
|
| - if (ShouldUseWarp())
|
| - command_line->AppendSwitch(switches::kUseWarp);
|
| + if (ShouldUseWarp() && !command_line->HasSwitch(switches::kUseANGLE)) {
|
| + command_line->AppendSwitchASCII(switches::kUseANGLE,
|
| + gfx::kANGLEImplementationWARPName);
|
| + }
|
| }
|
|
|
| void GpuDataManagerImplPrivate::AppendPluginCommandLine(
|
|
|