| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 #include "gl_bindings_autogen_wgl.h" | 89 #include "gl_bindings_autogen_wgl.h" |
| 90 #elif defined(USE_X11) | 90 #elif defined(USE_X11) |
| 91 #include "gl_bindings_autogen_egl.h" | 91 #include "gl_bindings_autogen_egl.h" |
| 92 #include "gl_bindings_autogen_glx.h" | 92 #include "gl_bindings_autogen_glx.h" |
| 93 #elif defined(OS_ANDROID) | 93 #elif defined(OS_ANDROID) |
| 94 #include "gl_bindings_autogen_egl.h" | 94 #include "gl_bindings_autogen_egl.h" |
| 95 #endif | 95 #endif |
| 96 | 96 |
| 97 namespace gfx { | 97 namespace gfx { |
| 98 | 98 |
| 99 GL_EXPORT extern GLApi* g_current_gl_context; |
| 100 GL_EXPORT extern OSMESAApi* g_current_osmesa_context; |
| 101 GL_EXPORT extern DriverGL g_driver_gl; |
| 102 GL_EXPORT extern DriverOSMESA g_driver_osmesa; |
| 103 |
| 104 #if defined(OS_WIN) |
| 105 |
| 106 GL_EXPORT extern EGLApi* g_current_egl_context; |
| 107 GL_EXPORT extern WGLApi* g_current_wgl_context; |
| 108 GL_EXPORT extern DriverEGL g_driver_egl; |
| 109 GL_EXPORT extern DriverWGL g_driver_wgl; |
| 110 |
| 111 #elif defined(USE_X11) |
| 112 |
| 113 GL_EXPORT extern EGLApi* g_current_egl_context; |
| 114 GL_EXPORT extern GLXApi* g_current_glx_context; |
| 115 GL_EXPORT extern DriverEGL g_driver_egl; |
| 116 GL_EXPORT extern DriverGLX g_driver_glx; |
| 117 |
| 118 #elif defined(OS_ANDROID) |
| 119 |
| 120 GL_EXPORT extern EGLApi* g_current_egl_context; |
| 121 GL_EXPORT extern DriverEGL g_driver_egl; |
| 122 |
| 123 #endif |
| 124 |
| 99 // Find an entry point to the mock GL implementation. | 125 // Find an entry point to the mock GL implementation. |
| 100 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); | 126 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); |
| 101 | 127 |
| 102 } // namespace gfx | 128 } // namespace gfx |
| 103 | 129 |
| 104 #endif // UI_GL_GL_BINDINGS_H_ | 130 #endif // UI_GL_GL_BINDINGS_H_ |
| OLD | NEW |