| Index: ui/gl/gl_implementation.cc
|
| diff --git a/ui/gl/gl_implementation.cc b/ui/gl/gl_implementation.cc
|
| index d8de8c26913c24ee4c96a45ff1533bfc63a38a62..e1e0f5e355b2501ee8330c72efd6f91622ebc556 100644
|
| --- a/ui/gl/gl_implementation.cc
|
| +++ b/ui/gl/gl_implementation.cc
|
| @@ -12,6 +12,10 @@
|
| #include "base/logging.h"
|
| #include "ui/gl/gl_bindings.h"
|
|
|
| +#if defined(USE_OZONE)
|
| +#include "ui/gfx/ozone/surface_factory_ozone.h"
|
| +#endif
|
| +
|
| namespace gfx {
|
|
|
| namespace {
|
| @@ -142,8 +146,13 @@ void* GetGLCoreProcAddress(const char* name) {
|
|
|
| if (g_libraries) {
|
| for (size_t i = 0; i < g_libraries->size(); ++i) {
|
| +#if defined(USE_OZONE)
|
| + void* proc = gfx::SurfaceFactoryOzone::GetInstance()->
|
| + GetFunctionPointerFromNativeLibrary((*g_libraries)[i], name);
|
| +#else
|
| void* proc = base::GetFunctionPointerFromNativeLibrary((*g_libraries)[i],
|
| name);
|
| +#endif
|
| if (proc)
|
| return proc;
|
| }
|
|
|