| 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
|
|
|