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

Unified Diff: gpu/config/gpu_switches.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: gpu/config/gpu_switches.cc
diff --git a/gpu/config/gpu_switches.cc b/gpu/config/gpu_switches.cc
index 554582d81aaf4bd2b14a520a4bb86c7f875a19a9..bfcb54ce46b825957aa897ee1789783524bdd11f 100644
--- a/gpu/config/gpu_switches.cc
+++ b/gpu/config/gpu_switches.cc
@@ -9,6 +9,12 @@ namespace switches {
// Pass a set of GpuDriverBugWorkaroundType ids, seperated by ','.
const char kGpuDriverBugWorkarounds[] = "gpu-driver-bug-workarounds";
+// Passes secondary gpu vendor ids from browser process to GPU process.
+const char kGpuSecondaryVendorIDs[] = "gpu-secondary-vendor-ids";
+
+// Passes secondary gpu device ids from browser process to GPU process.
+const char kGpuSecondaryDeviceIDs[] = "gpu-secondary-device-ids";
+
// Testing switch to not launch the gpu process for full gpu info collection.
const char kGpuTestingNoCompleteInfoCollection[] =
"gpu-no-complete-info-collection";
@@ -22,6 +28,12 @@ const char kGpuTestingVendorId[] = "gpu-testing-vendor-id";
// Override gpu device id from the GpuInfoCollector.
const char kGpuTestingDeviceId[] = "gpu-testing-device-id";
+// Override secondary gpu vendor ids from the GpuInfoCollector.
+const char kGpuTestingSecondaryVendorIDs[] = "gpu-testing-secondary-vendor-ids";
+
+// Override secondary gpu device ids from the GpuInfoCollector.
+const char kGpuTestingSecondaryDeviceIDs[] = "gpu-testing-secondary-device-ids";
+
// Override gl vendor from the GpuInfoCollector.
const char kGpuTestingGLVendor[] = "gpu-testing-gl-vendor";

Powered by Google App Engine
This is Rietveld 408576698