Index: ui/gl/gl_implementation_ozone.cc |
diff --git a/ui/gl/gl_implementation_ozone.cc b/ui/gl/gl_implementation_ozone.cc |
index d4e3dda9bcc8e4c02a96ed07bac9b4e92ffcac8e..2ca30a4c923bd14627fd1b9c8645296f48a0125f 100644 |
--- a/ui/gl/gl_implementation_ozone.cc |
+++ b/ui/gl/gl_implementation_ozone.cc |
@@ -2,6 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "base/bind.h" |
#include "ui/gfx/ozone/surface_factory_ozone.h" |
#include "ui/gl/gl_bindings.h" |
#include "ui/gl/gl_egl_api_implementation.h" |
@@ -41,7 +42,9 @@ bool InitializeGLBindings(GLImplementation implementation) { |
case kGLImplementationOSMesaGL: |
return InitializeGLBindingsOSMesaGL(); |
case kGLImplementationEGLGLES2: |
- if (!gfx::SurfaceFactoryOzone::GetInstance()->LoadEGLGLES2Bindings()) |
+ if (!gfx::SurfaceFactoryOzone::GetInstance()->LoadEGLGLES2Bindings( |
+ base::Bind(&AddGLNativeLibrary), |
+ base::Bind(&SetGLGetProcAddressProc))) |
return false; |
SetGLImplementation(kGLImplementationEGLGLES2); |
InitializeGLBindingsGL(); |