| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT 0x8D6C | 206 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT 0x8D6C |
| 207 #endif | 207 #endif |
| 208 | 208 |
| 209 #ifndef GL_IMG_multisampled_render_to_texture | 209 #ifndef GL_IMG_multisampled_render_to_texture |
| 210 #define GL_RENDERBUFFER_SAMPLES_IMG 0x9133 | 210 #define GL_RENDERBUFFER_SAMPLES_IMG 0x9133 |
| 211 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134 | 211 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134 |
| 212 #define GL_MAX_SAMPLES_IMG 0x9135 | 212 #define GL_MAX_SAMPLES_IMG 0x9135 |
| 213 #define GL_TEXTURE_SAMPLES_IMG 0x9136 | 213 #define GL_TEXTURE_SAMPLES_IMG 0x9136 |
| 214 #endif | 214 #endif |
| 215 | 215 |
| 216 #ifndef GL_CHROMIUM_path_rendering |
| 217 // These match the corresponding values in NV_path_rendering |
| 218 // extension, eg tokens with CHROMIUM replaced with NV. |
| 219 #define GL_PATH_MODELVIEW_MATRIX_CHROMIUM 0x0BA6 |
| 220 #define GL_PATH_PROJECTION_MATRIX_CHROMIUM 0x0BA7 |
| 221 #define GL_PATH_MODELVIEW_CHROMIUM 0x1700 |
| 222 #define GL_PATH_PROJECTION_CHROMIUM 0x1701 |
| 223 #endif |
| 224 |
| 216 #define GL_GLEXT_PROTOTYPES 1 | 225 #define GL_GLEXT_PROTOTYPES 1 |
| 217 | 226 |
| 218 #if defined(OS_WIN) | 227 #if defined(OS_WIN) |
| 219 #define GL_BINDING_CALL WINAPI | 228 #define GL_BINDING_CALL WINAPI |
| 220 #else | 229 #else |
| 221 #define GL_BINDING_CALL | 230 #define GL_BINDING_CALL |
| 222 #endif | 231 #endif |
| 223 | 232 |
| 224 #define GL_SERVICE_LOG(args) DLOG(INFO) << args; | 233 #define GL_SERVICE_LOG(args) DLOG(INFO) << args; |
| 225 #if defined(NDEBUG) | 234 #if defined(NDEBUG) |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 #elif defined(OS_ANDROID) | 361 #elif defined(OS_ANDROID) |
| 353 | 362 |
| 354 GL_EXPORT extern EGLApi* g_current_egl_context; | 363 GL_EXPORT extern EGLApi* g_current_egl_context; |
| 355 GL_EXPORT extern DriverEGL g_driver_egl; | 364 GL_EXPORT extern DriverEGL g_driver_egl; |
| 356 | 365 |
| 357 #endif | 366 #endif |
| 358 | 367 |
| 359 } // namespace gfx | 368 } // namespace gfx |
| 360 | 369 |
| 361 #endif // UI_GL_GL_BINDINGS_H_ | 370 #endif // UI_GL_GL_BINDINGS_H_ |
| OLD | NEW |