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

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: Add utility function gpu::ParseSecondaryGpuDevicesFromCommandLine (and rebase) 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..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);
}

Powered by Google App Engine
This is Rietveld 408576698