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

Unified Diff: ui/gfx/gl/gl_bindings.h

Issue 6990051: Unix ifdefs patch for ui/ and webkit/ (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: removed some too general ifdefs and ppapi changes Created 9 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
Index: ui/gfx/gl/gl_bindings.h
diff --git a/ui/gfx/gl/gl_bindings.h b/ui/gfx/gl/gl_bindings.h
index 8c16a974cce1ea5c64a0468377f1cfe96bc25a85..c478d703c3a64efb582c31feabe2a7497fd6760e 100644
--- a/ui/gfx/gl/gl_bindings.h
+++ b/ui/gfx/gl/gl_bindings.h
@@ -22,7 +22,9 @@
// The standard OpenGL native extension headers are also included.
#if defined(OS_WIN)
#include <GL/wglext.h>
-#elif defined(OS_LINUX)
+#elif defined(OS_MACOSX)
+#include <OpenGL/OpenGL.h>
+#elif defined(USE_X11)
#include <GL/glx.h>
#include <GL/glxext.h>
@@ -31,9 +33,6 @@
#undef Bool
#undef None
#undef Status
-
-#elif defined(OS_MACOSX)
-#include <OpenGL/OpenGL.h>
#endif
#if defined(OS_WIN)
@@ -52,7 +51,7 @@
typedef struct osmesa_context *OSMesaContext;
typedef void (*OSMESAproc)();
-#if defined(OS_WIN) || defined(OS_LINUX)
+#if !defined(OS_MACOSX)
// Forward declare EGL types.
typedef unsigned int EGLBoolean;
@@ -75,7 +74,7 @@ typedef Pixmap EGLNativePixmapType;
typedef Window EGLNativeWindowType;
#endif
-#endif // OS_WIN || OS_LINUX
+#endif // !OS_MACOSX
#include "gl_bindings_autogen_gl.h"
#include "gl_bindings_autogen_osmesa.h"
@@ -83,7 +82,7 @@ typedef Window EGLNativeWindowType;
#if defined(OS_WIN)
#include "gl_bindings_autogen_egl.h"
#include "gl_bindings_autogen_wgl.h"
-#elif defined(OS_LINUX)
+#elif defined(USE_X11)
#include "gl_bindings_autogen_egl.h"
#include "gl_bindings_autogen_glx.h"
#endif

Powered by Google App Engine
This is Rietveld 408576698