diff options
Diffstat (limited to 'ui/gfx/gl/gl_context_linux.cc')
-rw-r--r-- | ui/gfx/gl/gl_context_linux.cc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/ui/gfx/gl/gl_context_linux.cc b/ui/gfx/gl/gl_context_linux.cc index 8cf2eeb..238bd5f 100644 --- a/ui/gfx/gl/gl_context_linux.cc +++ b/ui/gfx/gl/gl_context_linux.cc @@ -20,27 +20,29 @@ namespace gfx { +class GLShareGroup; + scoped_refptr<GLContext> GLContext::CreateGLContext( - GLContext* shared_context, + GLShareGroup* share_group, GLSurface* compatible_surface) { switch (GetGLImplementation()) { case kGLImplementationOSMesaGL: { - scoped_refptr<GLContext> context(new GLContextOSMesa); - if (!context->Initialize(shared_context, compatible_surface)) + scoped_refptr<GLContext> context(new GLContextOSMesa(share_group)); + if (!context->Initialize(compatible_surface)) return NULL; return context; } case kGLImplementationEGLGLES2: { - scoped_refptr<GLContext> context(new GLContextEGL); - if (!context->Initialize(shared_context, compatible_surface)) + scoped_refptr<GLContext> context(new GLContextEGL(share_group)); + if (!context->Initialize(compatible_surface)) return NULL; return context; } case kGLImplementationDesktopGL: { - scoped_refptr<GLContext> context(new GLContextGLX); - if (!context->Initialize(shared_context, compatible_surface)) + scoped_refptr<GLContext> context(new GLContextGLX(share_group)); + if (!context->Initialize(compatible_surface)) return NULL; return context; |