| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 #endif /* GL_KHR_blend_equation_advanced_coherent */ | 249 #endif /* GL_KHR_blend_equation_advanced_coherent */ |
| 250 | 250 |
| 251 #ifndef GL_EXT_disjoint_timer_query | 251 #ifndef GL_EXT_disjoint_timer_query |
| 252 #define GL_EXT_disjoint_timer_query 1 | 252 #define GL_EXT_disjoint_timer_query 1 |
| 253 #define GL_QUERY_COUNTER_BITS_EXT 0x8864 | 253 #define GL_QUERY_COUNTER_BITS_EXT 0x8864 |
| 254 #define GL_TIME_ELAPSED_EXT 0x88BF | 254 #define GL_TIME_ELAPSED_EXT 0x88BF |
| 255 #define GL_TIMESTAMP_EXT 0x8E28 | 255 #define GL_TIMESTAMP_EXT 0x8E28 |
| 256 #define GL_GPU_DISJOINT_EXT 0x8FBB | 256 #define GL_GPU_DISJOINT_EXT 0x8FBB |
| 257 #endif | 257 #endif |
| 258 | 258 |
| 259 #ifndef GL_KHR_robustness |
| 260 #define GL_KHR_robustness 1 |
| 261 #define GL_CONTEXT_ROBUST_ACCESS_KHR 0x90F3 |
| 262 #define GL_LOSE_CONTEXT_ON_RESET_KHR 0x8252 |
| 263 #define GL_GUILTY_CONTEXT_RESET_KHR 0x8253 |
| 264 #define GL_INNOCENT_CONTEXT_RESET_KHR 0x8254 |
| 265 #define GL_UNKNOWN_CONTEXT_RESET_KHR 0x8255 |
| 266 #define GL_RESET_NOTIFICATION_STRATEGY_KHR 0x8256 |
| 267 #define GL_NO_RESET_NOTIFICATION_KHR 0x8261 |
| 268 #define GL_CONTEXT_LOST_KHR 0x0507 |
| 269 #endif /* GL_KHR_robustness */ |
| 270 |
| 259 #define GL_GLEXT_PROTOTYPES 1 | 271 #define GL_GLEXT_PROTOTYPES 1 |
| 260 | 272 |
| 261 #if defined(OS_WIN) | 273 #if defined(OS_WIN) |
| 262 #define GL_BINDING_CALL WINAPI | 274 #define GL_BINDING_CALL WINAPI |
| 263 #else | 275 #else |
| 264 #define GL_BINDING_CALL | 276 #define GL_BINDING_CALL |
| 265 #endif | 277 #endif |
| 266 | 278 |
| 267 #define GL_SERVICE_LOG(args) DLOG(INFO) << args; | 279 #define GL_SERVICE_LOG(args) DLOG(INFO) << args; |
| 268 #if defined(NDEBUG) | 280 #if defined(NDEBUG) |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 #elif defined(OS_ANDROID) | 407 #elif defined(OS_ANDROID) |
| 396 | 408 |
| 397 GL_EXPORT extern EGLApi* g_current_egl_context; | 409 GL_EXPORT extern EGLApi* g_current_egl_context; |
| 398 GL_EXPORT extern DriverEGL g_driver_egl; | 410 GL_EXPORT extern DriverEGL g_driver_egl; |
| 399 | 411 |
| 400 #endif | 412 #endif |
| 401 | 413 |
| 402 } // namespace gfx | 414 } // namespace gfx |
| 403 | 415 |
| 404 #endif // UI_GL_GL_BINDINGS_H_ | 416 #endif // UI_GL_GL_BINDINGS_H_ |
| OLD | NEW |