Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: ui/gl/gl_implementation.cc

Issue 106633002: GBM Ozone implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698