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

Unified Diff: ui/gl/gl_bindings.h

Issue 13886018: Add a factory and defines for native Linux surfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 years, 7 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
« no previous file with comments | « ui/gl/gl.gyp ('k') | ui/gl/gl_context_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_bindings.h
diff --git a/ui/gl/gl_bindings.h b/ui/gl/gl_bindings.h
index 38caddec5979467d9eb928522450070d799ac4fe..a09cd7141caf594aea35b7355f39d004ecad88a7 100644
--- a/ui/gl/gl_bindings.h
+++ b/ui/gl/gl_bindings.h
@@ -206,6 +206,8 @@ typedef uint64 EGLuint64CHROMIUM;
#elif defined(USE_X11)
#include "gl_bindings_autogen_egl.h"
#include "gl_bindings_autogen_glx.h"
+#elif defined(USE_OZONE)
+#include "gl_bindings_autogen_egl.h"
#elif defined(OS_ANDROID)
#include "gl_bindings_autogen_egl.h"
#endif
@@ -255,7 +257,7 @@ struct GL_EXPORT DriverWGL {
};
#endif
-#if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID)
+#if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || defined(USE_OZONE)
struct GL_EXPORT DriverEGL {
void InitializeBindings();
void InitializeExtensionBindings(GLContext* context);
@@ -302,6 +304,11 @@ GL_EXPORT extern GLXApi* g_current_glx_context;
GL_EXPORT extern DriverEGL g_driver_egl;
GL_EXPORT extern DriverGLX g_driver_glx;
+#elif defined(USE_OZONE)
+
+GL_EXPORT extern EGLApi* g_current_egl_context;
+GL_EXPORT extern DriverEGL g_driver_egl;
+
#elif defined(OS_ANDROID)
GL_EXPORT extern EGLApi* g_current_egl_context;
« no previous file with comments | « ui/gl/gl.gyp ('k') | ui/gl/gl_context_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698