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

Unified Diff: ui/gl/gl_context_mac.mm

Issue 10909221: Implement blacklist's force GPU capability in dual GPU machines. (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 156195)
+++ ui/gl/gl_context_mac.mm (working copy)
@@ -17,6 +17,7 @@
#include "ui/gl/gl_implementation.h"
#include "ui/gl/gl_surface.h"
#include "ui/gl/gl_switches.h"
+#include "ui/gl/gpu_switching_manager.h"
#if defined(USE_AURA)
#include "ui/gl/gl_context_nsview.h"
@@ -170,7 +171,7 @@
switches::kDisableGpuSwitching);
if (forcibly_disable) {
- GLContextCGL::ForceUseOfDiscreteGPU();
+ GpuSwitchingManager::GetInstance()->ForceUseOfDiscreteGpu();
return false;
}
« no previous file with comments | « ui/gl/gl_context_cgl.cc ('k') | ui/gl/gl_switches.h » ('j') | ui/gl/gl_switches.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698