| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Includes the platform independent and platform dependent GL headers. | 5 // Includes the platform independent and platform dependent GL headers. |
| 6 // Only include this in cc files. It pulls in system headers, including | 6 // Only include this in cc files. It pulls in system headers, including |
| 7 // the X11 headers on linux, which define all kinds of macros that are | 7 // the X11 headers on linux, which define all kinds of macros that are |
| 8 // liable to cause conflicts. | 8 // liable to cause conflicts. |
| 9 | 9 |
| 10 #ifndef UI_GFX_GL_GL_BINDINGS_H_ | 10 #ifndef UI_GFX_GL_GL_BINDINGS_H_ |
| 11 #define UI_GFX_GL_GL_BINDINGS_H_ | 11 #define UI_GFX_GL_GL_BINDINGS_H_ |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 typedef void* GLeglImageOES; | 67 typedef void* GLeglImageOES; |
| 68 | 68 |
| 69 #if defined(OS_WIN) | 69 #if defined(OS_WIN) |
| 70 typedef HDC EGLNativeDisplayType; | 70 typedef HDC EGLNativeDisplayType; |
| 71 typedef HBITMAP EGLNativePixmapType; | 71 typedef HBITMAP EGLNativePixmapType; |
| 72 typedef HWND EGLNativeWindowType; | 72 typedef HWND EGLNativeWindowType; |
| 73 #elif defined(OS_ANDROID) | 73 #elif defined(OS_ANDROID) |
| 74 typedef void *EGLNativeDisplayType; | 74 typedef void *EGLNativeDisplayType; |
| 75 typedef struct egl_native_pixmap_t *EGLNativePixmapType; | 75 typedef struct egl_native_pixmap_t *EGLNativePixmapType; |
| 76 typedef struct ANativeWindow *EGLNativeWindowType; | 76 typedef struct ANativeWindow *EGLNativeWindowType; |
| 77 #elif defined(USE_WAYLAND) | |
| 78 typedef struct wl_display *EGLNativeDisplayType; | |
| 79 typedef struct wl_egl_pixmap *EGLNativePixmapType; | |
| 80 typedef struct wl_egl_window *EGLNativeWindowType; | |
| 81 #else | 77 #else |
| 82 typedef Display *EGLNativeDisplayType; | 78 typedef Display *EGLNativeDisplayType; |
| 83 typedef Pixmap EGLNativePixmapType; | 79 typedef Pixmap EGLNativePixmapType; |
| 84 typedef Window EGLNativeWindowType; | 80 typedef Window EGLNativeWindowType; |
| 85 #endif | 81 #endif |
| 86 | 82 |
| 87 #endif // !OS_MACOSX | 83 #endif // !OS_MACOSX |
| 88 | 84 |
| 89 #include "gl_bindings_autogen_gl.h" | 85 #include "gl_bindings_autogen_gl.h" |
| 90 #include "gl_bindings_autogen_osmesa.h" | 86 #include "gl_bindings_autogen_osmesa.h" |
| 91 | 87 |
| 92 #if defined(OS_WIN) | 88 #if defined(OS_WIN) |
| 93 #include "gl_bindings_autogen_egl.h" | 89 #include "gl_bindings_autogen_egl.h" |
| 94 #include "gl_bindings_autogen_wgl.h" | 90 #include "gl_bindings_autogen_wgl.h" |
| 95 #elif defined(USE_X11) | 91 #elif defined(USE_X11) |
| 96 #include "gl_bindings_autogen_egl.h" | 92 #include "gl_bindings_autogen_egl.h" |
| 97 #include "gl_bindings_autogen_glx.h" | 93 #include "gl_bindings_autogen_glx.h" |
| 98 #elif defined(OS_ANDROID) | 94 #elif defined(OS_ANDROID) |
| 99 #include "gl_bindings_autogen_egl.h" | 95 #include "gl_bindings_autogen_egl.h" |
| 100 #endif | 96 #endif |
| 101 | 97 |
| 102 namespace gfx { | 98 namespace gfx { |
| 103 | 99 |
| 104 // Find an entry point to the mock GL implementation. | 100 // Find an entry point to the mock GL implementation. |
| 105 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); | 101 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); |
| 106 | 102 |
| 107 } // namespace gfx | 103 } // namespace gfx |
| 108 | 104 |
| 109 #endif // UI_GFX_GL_GL_BINDINGS_H_ | 105 #endif // UI_GFX_GL_GL_BINDINGS_H_ |
| OLD | NEW |