| Index: ui/gl/gl_surface_x11.cc
|
| diff --git a/ui/gl/gl_surface_x11.cc b/ui/gl/gl_surface_x11.cc
|
| index a384147cb2feb188cd3b3acde518f308e70b8511..63b0e96ab69ac0d97caa4c936e798a4ca4aef9f1 100644
|
| --- a/ui/gl/gl_surface_x11.cc
|
| +++ b/ui/gl/gl_surface_x11.cc
|
| @@ -52,6 +52,7 @@ class NativeViewGLSurfaceOSMesa : public GLSurfaceOSMesa {
|
| bool GLSurface::InitializeOneOffInternal() {
|
| switch (GetGLImplementation()) {
|
| case kGLImplementationDesktopGL:
|
| + case kGLImplementationDesktopGLCoreProfile:
|
| if (!GLSurfaceGLX::InitializeOneOff()) {
|
| LOG(ERROR) << "GLSurfaceGLX::InitializeOneOff failed.";
|
| return false;
|
| @@ -283,7 +284,8 @@ scoped_refptr<GLSurface> GLSurface::CreateViewGLSurface(
|
|
|
| return surface;
|
| }
|
| - case kGLImplementationDesktopGL: {
|
| + case kGLImplementationDesktopGL:
|
| + case kGLImplementationDesktopGLCoreProfile: {
|
| scoped_refptr<GLSurface> surface(new NativeViewGLSurfaceGLX(window));
|
| if (!surface->Initialize())
|
| return NULL;
|
| @@ -318,7 +320,8 @@ scoped_refptr<GLSurface> GLSurface::CreateOffscreenGLSurface(
|
|
|
| return surface;
|
| }
|
| - case kGLImplementationDesktopGL: {
|
| + case kGLImplementationDesktopGL:
|
| + case kGLImplementationDesktopGLCoreProfile: {
|
| scoped_refptr<GLSurface> surface(new PbufferGLSurfaceGLX(size));
|
| if (!surface->Initialize())
|
| return NULL;
|
|
|