| Index: ui/gl/gl_implementation.cc
|
| diff --git a/ui/gl/gl_implementation.cc b/ui/gl/gl_implementation.cc
|
| index ee874db46e0435e399a79fbea79fa7e759512182..a7654e746c0e22e02dc7b812385c22c17836e888 100644
|
| --- a/ui/gl/gl_implementation.cc
|
| +++ b/ui/gl/gl_implementation.cc
|
| @@ -13,6 +13,10 @@
|
| #include "ui/gl/gl_bindings.h"
|
| #include "ui/gl/gl_gl_api_implementation.h"
|
|
|
| +#if defined(USE_OZONE)
|
| +#include "ui/gfx/ozone/surface_factory_ozone.h"
|
| +#endif
|
| +
|
| namespace gfx {
|
|
|
| namespace {
|
| @@ -128,8 +132,13 @@ void* GetGLProcAddress(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;
|
| }
|
|
|