diff options
Diffstat (limited to 'ui/gfx/gl/gl_context_win.cc')
-rw-r--r-- | ui/gfx/gl/gl_context_win.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/ui/gfx/gl/gl_context_win.cc b/ui/gfx/gl/gl_context_win.cc index 3ca5f3b..65ce32d 100644 --- a/ui/gfx/gl/gl_context_win.cc +++ b/ui/gfx/gl/gl_context_win.cc @@ -22,25 +22,26 @@ namespace gfx { scoped_refptr<GLContext> GLContext::CreateGLContext( GLShareGroup* share_group, - GLSurface* compatible_surface) { + GLSurface* compatible_surface, + GpuPreference gpu_preference) { switch (GetGLImplementation()) { 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 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; } case kGLImplementationDesktopGL: { scoped_refptr<GLContext> context(new GLContextWGL(share_group)); - if (!context->Initialize(compatible_surface)) + if (!context->Initialize(compatible_surface, gpu_preference)) return NULL; return context; @@ -53,4 +54,8 @@ scoped_refptr<GLContext> GLContext::CreateGLContext( } } +bool GLContext::SupportsDualGpus() { + return false; +} + } // namespace gfx |