| 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 215 |
| 216 #ifndef GL_CHROMIUM_path_rendering | 216 #ifndef GL_CHROMIUM_path_rendering |
| 217 // These match the corresponding values in NV_path_rendering | 217 // These match the corresponding values in NV_path_rendering |
| 218 // extension, eg tokens with CHROMIUM replaced with NV. | 218 // extension, eg tokens with CHROMIUM replaced with NV. |
| 219 #define GL_PATH_MODELVIEW_MATRIX_CHROMIUM 0x0BA6 | 219 #define GL_PATH_MODELVIEW_MATRIX_CHROMIUM 0x0BA6 |
| 220 #define GL_PATH_PROJECTION_MATRIX_CHROMIUM 0x0BA7 | 220 #define GL_PATH_PROJECTION_MATRIX_CHROMIUM 0x0BA7 |
| 221 #define GL_PATH_MODELVIEW_CHROMIUM 0x1700 | 221 #define GL_PATH_MODELVIEW_CHROMIUM 0x1700 |
| 222 #define GL_PATH_PROJECTION_CHROMIUM 0x1701 | 222 #define GL_PATH_PROJECTION_CHROMIUM 0x1701 |
| 223 #endif | 223 #endif |
| 224 | 224 |
| 225 #ifndef GL_EXT_disjoint_timer_query |
| 226 #define GL_EXT_disjoint_timer_query 1 |
| 227 #define GL_QUERY_COUNTER_BITS_EXT 0x8864 |
| 228 #define GL_CURRENT_QUERY_EXT 0x8865 |
| 229 #define GL_QUERY_RESULT_EXT 0x8866 |
| 230 #define GL_QUERY_RESULT_AVAILABLE_EXT 0x8867 |
| 231 #define GL_TIME_ELAPSED_EXT 0x88BF |
| 232 #define GL_TIMESTAMP_EXT 0x8E28 |
| 233 #define GL_GPU_DISJOINT_EXT 0x8FBB |
| 234 #endif |
| 235 |
| 225 #define GL_GLEXT_PROTOTYPES 1 | 236 #define GL_GLEXT_PROTOTYPES 1 |
| 226 | 237 |
| 227 #if defined(OS_WIN) | 238 #if defined(OS_WIN) |
| 228 #define GL_BINDING_CALL WINAPI | 239 #define GL_BINDING_CALL WINAPI |
| 229 #else | 240 #else |
| 230 #define GL_BINDING_CALL | 241 #define GL_BINDING_CALL |
| 231 #endif | 242 #endif |
| 232 | 243 |
| 233 #define GL_SERVICE_LOG(args) DLOG(INFO) << args; | 244 #define GL_SERVICE_LOG(args) DLOG(INFO) << args; |
| 234 #if defined(NDEBUG) | 245 #if defined(NDEBUG) |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 #elif defined(OS_ANDROID) | 372 #elif defined(OS_ANDROID) |
| 362 | 373 |
| 363 GL_EXPORT extern EGLApi* g_current_egl_context; | 374 GL_EXPORT extern EGLApi* g_current_egl_context; |
| 364 GL_EXPORT extern DriverEGL g_driver_egl; | 375 GL_EXPORT extern DriverEGL g_driver_egl; |
| 365 | 376 |
| 366 #endif | 377 #endif |
| 367 | 378 |
| 368 } // namespace gfx | 379 } // namespace gfx |
| 369 | 380 |
| 370 #endif // UI_GL_GL_BINDINGS_H_ | 381 #endif // UI_GL_GL_BINDINGS_H_ |
| OLD | NEW |