Chromium Code Reviews| Index: content/gpu/gpu_main.cc |
| diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc |
| index 7ffa59e4468e611e614de4026b9e6a2f5f476ae0..d26e90862c878a34103149971c17c9f283ce6c8f 100644 |
| --- a/content/gpu/gpu_main.cc |
| +++ b/content/gpu/gpu_main.cc |
| @@ -442,6 +442,11 @@ void GetGpuInfoFromCommandLine(gpu::GPUInfo& gpu_info, |
| command_line.GetSwitchValueASCII(switches::kGpuDriverVendor); |
| gpu_info.driver_version = |
| command_line.GetSwitchValueASCII(switches::kGpuDriverVersion); |
| + gpu_info.gpu.active = true; |
|
Zhenyao Mo
2016/04/19 21:05:27
Why assume the primary GPU is active? Wouldn't thi
Julien Isorce Samsung
2016/04/20 17:19:21
You are right. When there is least one secondary g
|
| + gpu::ParseSecondaryGpuDevicesFromCommandLine( |
| + command_line, switches::kGpuSecondaryVendorIDs, |
| + switches::kGpuSecondaryDeviceIDs, &gpu_info); |
| + |
| GetContentClient()->SetGpuInfo(gpu_info); |
| } |