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

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
« no previous file with comments | « ui/gl/gl_context_cgl.cc ('k') | ui/gl/gl_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)) &&
+ !CommandLine::ForCurrentProcess()->HasSwitch(switches::kGpuSwitching);
if (forcibly_disable) {
GpuSwitchingManager::GetInstance()->ForceUseOfDiscreteGpu();
« no previous file with comments | « ui/gl/gl_context_cgl.cc ('k') | ui/gl/gl_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698