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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 219 |
220 #ifndef GL_CHROMIUM_path_rendering | 220 #ifndef GL_CHROMIUM_path_rendering |
221 // These match the corresponding values in NV_path_rendering | 221 // These match the corresponding values in NV_path_rendering |
222 // extension, eg tokens with CHROMIUM replaced with NV. | 222 // extension, eg tokens with CHROMIUM replaced with NV. |
223 #define GL_PATH_MODELVIEW_MATRIX_CHROMIUM 0x0BA6 | 223 #define GL_PATH_MODELVIEW_MATRIX_CHROMIUM 0x0BA6 |
224 #define GL_PATH_PROJECTION_MATRIX_CHROMIUM 0x0BA7 | 224 #define GL_PATH_PROJECTION_MATRIX_CHROMIUM 0x0BA7 |
225 #define GL_PATH_MODELVIEW_CHROMIUM 0x1700 | 225 #define GL_PATH_MODELVIEW_CHROMIUM 0x1700 |
226 #define GL_PATH_PROJECTION_CHROMIUM 0x1701 | 226 #define GL_PATH_PROJECTION_CHROMIUM 0x1701 |
227 #endif | 227 #endif |
228 | 228 |
| 229 #ifndef GL_KHR_blend_equation_advanced |
| 230 #define GL_KHR_blend_equation_advanced 1 |
| 231 #define GL_COLORBURN_KHR 0x929A |
| 232 #define GL_COLORDODGE_KHR 0x9299 |
| 233 #define GL_DARKEN_KHR 0x9297 |
| 234 #define GL_DIFFERENCE_KHR 0x929E |
| 235 #define GL_EXCLUSION_KHR 0x92A0 |
| 236 #define GL_HARDLIGHT_KHR 0x929B |
| 237 #define GL_HSL_COLOR_KHR 0x92AF |
| 238 #define GL_HSL_HUE_KHR 0x92AD |
| 239 #define GL_HSL_LUMINOSITY_KHR 0x92B0 |
| 240 #define GL_HSL_SATURATION_KHR 0x92AE |
| 241 #define GL_LIGHTEN_KHR 0x9298 |
| 242 #define GL_MULTIPLY_KHR 0x9294 |
| 243 #define GL_OVERLAY_KHR 0x9296 |
| 244 #define GL_SCREEN_KHR 0x9295 |
| 245 #define GL_SOFTLIGHT_KHR 0x929C |
| 246 #endif /* GL_KHR_blend_equation_advanced */ |
| 247 |
| 248 #ifndef GL_KHR_blend_equation_advanced_coherent |
| 249 #define GL_KHR_blend_equation_advanced_coherent 1 |
| 250 #define GL_BLEND_ADVANCED_COHERENT_KHR 0x9285 |
| 251 #endif /* GL_KHR_blend_equation_advanced_coherent */ |
| 252 |
229 #ifndef GL_EXT_disjoint_timer_query | 253 #ifndef GL_EXT_disjoint_timer_query |
230 #define GL_EXT_disjoint_timer_query 1 | 254 #define GL_EXT_disjoint_timer_query 1 |
231 #define GL_QUERY_COUNTER_BITS_EXT 0x8864 | 255 #define GL_QUERY_COUNTER_BITS_EXT 0x8864 |
232 #define GL_TIME_ELAPSED_EXT 0x88BF | 256 #define GL_TIME_ELAPSED_EXT 0x88BF |
233 #define GL_TIMESTAMP_EXT 0x8E28 | 257 #define GL_TIMESTAMP_EXT 0x8E28 |
234 #define GL_GPU_DISJOINT_EXT 0x8FBB | 258 #define GL_GPU_DISJOINT_EXT 0x8FBB |
235 #endif | 259 #endif |
236 | 260 |
237 #define GL_GLEXT_PROTOTYPES 1 | 261 #define GL_GLEXT_PROTOTYPES 1 |
238 | 262 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 #elif defined(OS_ANDROID) | 397 #elif defined(OS_ANDROID) |
374 | 398 |
375 GL_EXPORT extern EGLApi* g_current_egl_context; | 399 GL_EXPORT extern EGLApi* g_current_egl_context; |
376 GL_EXPORT extern DriverEGL g_driver_egl; | 400 GL_EXPORT extern DriverEGL g_driver_egl; |
377 | 401 |
378 #endif | 402 #endif |
379 | 403 |
380 } // namespace gfx | 404 } // namespace gfx |
381 | 405 |
382 #endif // UI_GL_GL_BINDINGS_H_ | 406 #endif // UI_GL_GL_BINDINGS_H_ |
OLD | NEW |