| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT 0x8D6C | 179 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT 0x8D6C |
| 180 #endif | 180 #endif |
| 181 | 181 |
| 182 #ifndef GL_IMG_multisampled_render_to_texture | 182 #ifndef GL_IMG_multisampled_render_to_texture |
| 183 #define GL_RENDERBUFFER_SAMPLES_IMG 0x9133 | 183 #define GL_RENDERBUFFER_SAMPLES_IMG 0x9133 |
| 184 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134 | 184 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134 |
| 185 #define GL_MAX_SAMPLES_IMG 0x9135 | 185 #define GL_MAX_SAMPLES_IMG 0x9135 |
| 186 #define GL_TEXTURE_SAMPLES_IMG 0x9136 | 186 #define GL_TEXTURE_SAMPLES_IMG 0x9136 |
| 187 #endif | 187 #endif |
| 188 | 188 |
| 189 #ifndef GL_CHROMIUM_path_rendering |
| 190 #define GL_MODELVIEW_MATRIX_CHROMIUM 0x0BA6 |
| 191 #define GL_PROJECTION_MATRIX_CHROMIUM 0x0BA7 |
| 192 #define GL_MODELVIEW_CHROMIUM 0x1700 |
| 193 #define GL_PROJECTION_CHROMIUM 0x1701 |
| 194 #endif |
| 195 |
| 189 #define GL_GLEXT_PROTOTYPES 1 | 196 #define GL_GLEXT_PROTOTYPES 1 |
| 190 | 197 |
| 191 #if defined(OS_WIN) | 198 #if defined(OS_WIN) |
| 192 #define GL_BINDING_CALL WINAPI | 199 #define GL_BINDING_CALL WINAPI |
| 193 #else | 200 #else |
| 194 #define GL_BINDING_CALL | 201 #define GL_BINDING_CALL |
| 195 #endif | 202 #endif |
| 196 | 203 |
| 197 #define GL_SERVICE_LOG(args) DLOG(INFO) << args; | 204 #define GL_SERVICE_LOG(args) DLOG(INFO) << args; |
| 198 #if defined(NDEBUG) | 205 #if defined(NDEBUG) |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 #elif defined(OS_ANDROID) | 332 #elif defined(OS_ANDROID) |
| 326 | 333 |
| 327 GL_EXPORT extern EGLApi* g_current_egl_context; | 334 GL_EXPORT extern EGLApi* g_current_egl_context; |
| 328 GL_EXPORT extern DriverEGL g_driver_egl; | 335 GL_EXPORT extern DriverEGL g_driver_egl; |
| 329 | 336 |
| 330 #endif | 337 #endif |
| 331 | 338 |
| 332 } // namespace gfx | 339 } // namespace gfx |
| 333 | 340 |
| 334 #endif // UI_GL_GL_BINDINGS_H_ | 341 #endif // UI_GL_GL_BINDINGS_H_ |
| OLD | NEW |