summaryrefslogtreecommitdiffstats
path: root/ui/gfx/gl/gl_context_linux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/gl/gl_context_linux.cc')
-rw-r--r--ui/gfx/gl/gl_context_linux.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/ui/gfx/gl/gl_context_linux.cc b/ui/gfx/gl/gl_context_linux.cc
index 083b1ff..a6f7525 100644
--- a/ui/gfx/gl/gl_context_linux.cc
+++ b/ui/gfx/gl/gl_context_linux.cc
@@ -24,19 +24,20 @@ class GLShareGroup;
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 @@ scoped_refptr<GLContext> GLContext::CreateGLContext(
#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 @@ scoped_refptr<GLContext> GLContext::CreateGLContext(
}
}
+bool GLContext::SupportsDualGpus() {
+ return false;
+}
+
} // namespace gfx