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

Unified Diff: content/browser/gpu/gpu_data_manager_impl_private.cc

Issue 2312173003: gpu: Unify code to initialize dual-gpu mode. (Closed)
Patch Set: . Created 4 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
« no previous file with comments | « no previous file | content/gpu/gpu_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_data_manager_impl_private.cc
diff --git a/content/browser/gpu/gpu_data_manager_impl_private.cc b/content/browser/gpu/gpu_data_manager_impl_private.cc
index bbaba8bb2d25ce8f88aad19cd7a89ea39cc90f59..e245bef6a25cfbdd37330a4bf1764e9692d8d0bd 100644
--- a/content/browser/gpu/gpu_data_manager_impl_private.cc
+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc
@@ -1179,13 +1179,7 @@ void GpuDataManagerImplPrivate::UpdateGpuSwitchingManager(
vendor_ids.push_back(device.vendor_id);
}
ui::GpuSwitchingManager::GetInstance()->SetGpuVendorIds(vendor_ids);
-
- if (ui::GpuSwitchingManager::GetInstance()->SupportsDualGpus()) {
- if (gpu_driver_bugs_.count(gpu::FORCE_DISCRETE_GPU) == 1)
- ui::GpuSwitchingManager::GetInstance()->ForceUseOfDiscreteGpu();
- else if (gpu_driver_bugs_.count(gpu::FORCE_INTEGRATED_GPU) == 1)
- ui::GpuSwitchingManager::GetInstance()->ForceUseOfIntegratedGpu();
- }
+ gpu::InitializeDualGpusIfSupported(gpu_driver_bugs_);
}
void GpuDataManagerImplPrivate::NotifyGpuInfoUpdate() {
« no previous file with comments | « no previous file | content/gpu/gpu_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698