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

Unified Diff: ui/gl/gl_context_mac.mm

Issue 10959050: Honor --gpu-switching=force_discrete to always stay on discrete GPU. (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: ui/gl/gl_context_mac.mm
===================================================================
--- ui/gl/gl_context_mac.mm (revision 158081)
+++ ui/gl/gl_context_mac.mm (working copy)
@@ -150,11 +150,11 @@
const int kMacBookProFirstDualAMDIntelGPUModel = 8;
+ // Do not overwrite commandline switches to honor a user's decision.
bool forcibly_disable =
((model == "MacBookPro") &&
- (model_major < kMacBookProFirstDualAMDIntelGPUModel)) ||
- CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableGpuSwitching);
+ (model_major < kMacBookProFirstDualAMDIntelGPUModel)) &&
Ken Russell (switch to Gerrit) 2012/09/21 23:00:29 It would be really nice -- though probably difficu
Zhenyao Mo 2012/09/21 23:08:09 Yes, I am thinking of supporting Mac Models in bla
+ !CommandLine::ForCurrentProcess()->HasSwitch(switches::kGpuSwitching);
if (forcibly_disable) {
GpuSwitchingManager::GetInstance()->ForceUseOfDiscreteGpu();

Powered by Google App Engine
This is Rietveld 408576698