| OLD | NEW |
| 1 // Copyright (c) 2012 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 #ifndef UI_GL_GL_BINDINGS_H_ | 5 #ifndef UI_GL_GL_BINDINGS_H_ |
| 6 #define UI_GL_GL_BINDINGS_H_ | 6 #define UI_GL_GL_BINDINGS_H_ |
| 7 | 7 |
| 8 // Includes the platform independent and platform dependent GL headers. | 8 // Includes the platform independent and platform dependent GL headers. |
| 9 // Only include this in cc files. It pulls in system headers, including | 9 // Only include this in cc files. It pulls in system headers, including |
| 10 // the X11 headers on linux, which define all kinds of macros that are | 10 // the X11 headers on linux, which define all kinds of macros that are |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 | 199 |
| 200 #include "gl_bindings_autogen_gl.h" | 200 #include "gl_bindings_autogen_gl.h" |
| 201 #include "gl_bindings_autogen_osmesa.h" | 201 #include "gl_bindings_autogen_osmesa.h" |
| 202 | 202 |
| 203 #if defined(OS_WIN) | 203 #if defined(OS_WIN) |
| 204 #include "gl_bindings_autogen_egl.h" | 204 #include "gl_bindings_autogen_egl.h" |
| 205 #include "gl_bindings_autogen_wgl.h" | 205 #include "gl_bindings_autogen_wgl.h" |
| 206 #elif defined(USE_X11) | 206 #elif defined(USE_X11) |
| 207 #include "gl_bindings_autogen_egl.h" | 207 #include "gl_bindings_autogen_egl.h" |
| 208 #include "gl_bindings_autogen_glx.h" | 208 #include "gl_bindings_autogen_glx.h" |
| 209 #elif defined(USE_NATIVE_SURFACE_LINUX) |
| 210 #include "gl_bindings_autogen_egl.h" |
| 209 #elif defined(OS_ANDROID) | 211 #elif defined(OS_ANDROID) |
| 210 #include "gl_bindings_autogen_egl.h" | 212 #include "gl_bindings_autogen_egl.h" |
| 211 #endif | 213 #endif |
| 212 | 214 |
| 213 namespace gfx { | 215 namespace gfx { |
| 214 | 216 |
| 215 GL_EXPORT extern GLApi* g_current_gl_context; | 217 GL_EXPORT extern GLApi* g_current_gl_context; |
| 216 GL_EXPORT extern OSMESAApi* g_current_osmesa_context; | 218 GL_EXPORT extern OSMESAApi* g_current_osmesa_context; |
| 217 GL_EXPORT extern DriverGL g_driver_gl; | 219 GL_EXPORT extern DriverGL g_driver_gl; |
| 218 GL_EXPORT extern DriverOSMESA g_driver_osmesa; | 220 GL_EXPORT extern DriverOSMESA g_driver_osmesa; |
| 219 | 221 |
| 220 #if defined(OS_WIN) | 222 #if defined(OS_WIN) |
| 221 | 223 |
| 222 GL_EXPORT extern EGLApi* g_current_egl_context; | 224 GL_EXPORT extern EGLApi* g_current_egl_context; |
| 223 GL_EXPORT extern WGLApi* g_current_wgl_context; | 225 GL_EXPORT extern WGLApi* g_current_wgl_context; |
| 224 GL_EXPORT extern DriverEGL g_driver_egl; | 226 GL_EXPORT extern DriverEGL g_driver_egl; |
| 225 GL_EXPORT extern DriverWGL g_driver_wgl; | 227 GL_EXPORT extern DriverWGL g_driver_wgl; |
| 226 | 228 |
| 227 #elif defined(USE_X11) | 229 #elif defined(USE_X11) |
| 228 | 230 |
| 229 GL_EXPORT extern EGLApi* g_current_egl_context; | 231 GL_EXPORT extern EGLApi* g_current_egl_context; |
| 230 GL_EXPORT extern GLXApi* g_current_glx_context; | 232 GL_EXPORT extern GLXApi* g_current_glx_context; |
| 231 GL_EXPORT extern DriverEGL g_driver_egl; | 233 GL_EXPORT extern DriverEGL g_driver_egl; |
| 232 GL_EXPORT extern DriverGLX g_driver_glx; | 234 GL_EXPORT extern DriverGLX g_driver_glx; |
| 233 | 235 |
| 236 #elif defined(USE_NATIVE_SURFACE_LINUX) |
| 237 |
| 238 GL_EXPORT extern EGLApi* g_current_egl_context; |
| 239 GL_EXPORT extern DriverEGL g_driver_egl; |
| 240 |
| 234 #elif defined(OS_ANDROID) | 241 #elif defined(OS_ANDROID) |
| 235 | 242 |
| 236 GL_EXPORT extern EGLApi* g_current_egl_context; | 243 GL_EXPORT extern EGLApi* g_current_egl_context; |
| 237 GL_EXPORT extern DriverEGL g_driver_egl; | 244 GL_EXPORT extern DriverEGL g_driver_egl; |
| 238 | 245 |
| 239 #endif | 246 #endif |
| 240 | 247 |
| 241 // Find an entry point to the mock GL implementation. | 248 // Find an entry point to the mock GL implementation. |
| 242 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); | 249 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); |
| 243 | 250 |
| 244 } // namespace gfx | 251 } // namespace gfx |
| 245 | 252 |
| 246 #endif // UI_GL_GL_BINDINGS_H_ | 253 #endif // UI_GL_GL_BINDINGS_H_ |
| OLD | NEW |