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

Unified Diff: ui/gl/gl_bindings.h

Issue 17265006: wayland patch for inspection Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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_wayland.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 a09cd7141caf594aea35b7355f39d004ecad88a7..b5bf32c19d5f8f647b3af57d4d313576f6774da3 100644
--- a/ui/gl/gl_bindings.h
+++ b/ui/gl/gl_bindings.h
@@ -203,6 +203,8 @@ typedef uint64 EGLuint64CHROMIUM;
#if defined(OS_WIN)
#include "gl_bindings_autogen_egl.h"
#include "gl_bindings_autogen_wgl.h"
+#elif defined(USE_WAYLAND)
+#include "gl_bindings_autogen_egl.h"
#elif defined(USE_X11)
#include "gl_bindings_autogen_egl.h"
#include "gl_bindings_autogen_glx.h"
@@ -257,7 +259,7 @@ struct GL_EXPORT DriverWGL {
};
#endif
-#if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || defined(USE_OZONE)
+#if defined(OS_WIN) || defined(USE_WAYLAND) || defined(USE_X11) || defined(OS_ANDROID) || defined(USE_OZONE)
struct GL_EXPORT DriverEGL {
void InitializeBindings();
void InitializeExtensionBindings(GLContext* context);
@@ -297,6 +299,11 @@ GL_EXPORT extern WGLApi* g_current_wgl_context;
GL_EXPORT extern DriverEGL g_driver_egl;
GL_EXPORT extern DriverWGL g_driver_wgl;
+#elif defined(USE_WAYLAND)
+
+GL_EXPORT extern EGLApi* g_current_egl_context;
+GL_EXPORT extern DriverEGL g_driver_egl;
+
#elif defined(USE_X11)
GL_EXPORT extern EGLApi* g_current_egl_context;
« no previous file with comments | « ui/gl/gl.gyp ('k') | ui/gl/gl_context_wayland.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698