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

Unified Diff: chrome/browser/ui/webui/gpu_internals_ui.cc

Issue 10915219: Add capability for GPU blacklist to manage GPU switching. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 3 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: chrome/browser/ui/webui/gpu_internals_ui.cc
===================================================================
--- chrome/browser/ui/webui/gpu_internals_ui.cc (revision 155823)
+++ chrome/browser/ui/webui/gpu_internals_ui.cc (working copy)
@@ -342,7 +342,26 @@
feature_status_list->Append(
NewStatusValue(kGpuFeatureInfo[i].name.c_str(), status.c_str()));
}
-
+ content::GPUInfo gpu_info = GpuDataManager::GetInstance()->GetGPUInfo();
+ if (gpu_info.secondary_gpus.size() > 0 ||
+ gpu_info.optimus || gpu_info.amd_switchable) {
+ std::string gpu_switching;
+ switch (GpuDataManager::GetInstance()->GetGpuSwitchingOption()) {
+ case content::GPU_SWITCHING_AUTOMATIC:
+ gpu_switching = "gpu_switching_automatic";
+ break;
+ case content::GPU_SWITCHING_FORCE_DISCRETE:
+ gpu_switching = "gpu_switching_force_discrete";
+ break;
+ case content::GPU_SWITCHING_FORCE_INTEGRATED:
+ gpu_switching = "gpu_switching_force_integrated";
+ break;
+ default:
+ break;
+ }
+ feature_status_list->Append(
+ NewStatusValue("gpu_switching", gpu_switching.c_str()));
+ }
status->Set("featureStatus", feature_status_list);
}

Powered by Google App Engine
This is Rietveld 408576698