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

Unified Diff: ui/gfx/gl/gl_context_linux.cc

Issue 8233027: Support dynamic switching between integrated and discrete GPUs on Mac OS X. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/gfx/gl/gl_context_glx.cc ('k') | ui/gfx/gl/gl_context_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gl/gl_context_linux.cc
===================================================================
--- ui/gfx/gl/gl_context_linux.cc (revision 105357)
+++ ui/gfx/gl/gl_context_linux.cc (working copy)
@@ -24,19 +24,20 @@
scoped_refptr<GLContext> GLContext::CreateGLContext(
GLShareGroup* share_group,
- GLSurface* compatible_surface) {
+ GLSurface* compatible_surface,
+ GpuPreference gpu_preference) {
switch (GetGLImplementation()) {
#if !defined(USE_WAYLAND)
case kGLImplementationOSMesaGL: {
scoped_refptr<GLContext> context(new GLContextOSMesa(share_group));
- if (!context->Initialize(compatible_surface))
+ if (!context->Initialize(compatible_surface, gpu_preference))
return NULL;
return context;
}
case kGLImplementationDesktopGL: {
scoped_refptr<GLContext> context(new GLContextGLX(share_group));
- if (!context->Initialize(compatible_surface))
+ if (!context->Initialize(compatible_surface, gpu_preference))
return NULL;
return context;
@@ -44,7 +45,7 @@
#endif
case kGLImplementationEGLGLES2: {
scoped_refptr<GLContext> context(new GLContextEGL(share_group));
- if (!context->Initialize(compatible_surface))
+ if (!context->Initialize(compatible_surface, gpu_preference))
return NULL;
return context;
@@ -57,4 +58,8 @@
}
}
+bool GLContext::SupportsDualGpus() {
+ return false;
+}
+
} // namespace gfx
« no previous file with comments | « ui/gfx/gl/gl_context_glx.cc ('k') | ui/gfx/gl/gl_context_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698