Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(709)

Unified Diff: content/gpu/gpu_main.cc

Issue 1874643003: Do not lose secondary gpus and make sure to have an active gpu on multiple gpu configurations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added use_testing_switches param to ParseSecondaryGpuDevicesFromCommandLine and added IdentifyActiv… Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index 7ffa59e4468e611e614de4026b9e6a2f5f476ae0..9805e9b75fe990c51c3965bdf22c113b1e4ba25c 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -442,6 +442,10 @@ void GetGpuInfoFromCommandLine(gpu::GPUInfo& gpu_info,
command_line.GetSwitchValueASCII(switches::kGpuDriverVendor);
gpu_info.driver_version =
command_line.GetSwitchValueASCII(switches::kGpuDriverVersion);
+ gpu::ParseSecondaryGpuDevicesFromCommandLine(command_line, false, &gpu_info);
+ if (gpu_info.secondary_gpus.size() == 0)
+ gpu_info.gpu.active = true;
Zhenyao Mo 2016/04/21 17:03:37 This is better, but still doesn't address the prob
Julien Isorce Samsung 2016/04/21 23:27:08 Done, I added kGpuActiveDeviceID.
+
GetContentClient()->SetGpuInfo(gpu_info);
}

Powered by Google App Engine
This is Rietveld 408576698