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_NV_blend_equation_advanced |
| 230 #define GL_NV_blend_equation_advanced 1 |
| 231 #define GL_BLEND_OVERLAP_NV 0x9281 |
| 232 #define GL_BLEND_PREMULTIPLIED_SRC_NV 0x9280 |
| 233 #define GL_BLUE_NV 0x1905 |
| 234 #define GL_COLORBURN_NV 0x929A |
| 235 #define GL_COLORDODGE_NV 0x9299 |
| 236 #define GL_CONJOINT_NV 0x9284 |
| 237 #define GL_CONTRAST_NV 0x92A1 |
| 238 #define GL_DARKEN_NV 0x9297 |
| 239 #define GL_DIFFERENCE_NV 0x929E |
| 240 #define GL_DISJOINT_NV 0x9283 |
| 241 #define GL_DST_ATOP_NV 0x928F |
| 242 #define GL_DST_IN_NV 0x928B |
| 243 #define GL_DST_NV 0x9287 |
| 244 #define GL_DST_OUT_NV 0x928D |
| 245 #define GL_DST_OVER_NV 0x9289 |
| 246 #define GL_EXCLUSION_NV 0x92A0 |
| 247 #define GL_GREEN_NV 0x1904 |
| 248 #define GL_HARDLIGHT_NV 0x929B |
| 249 #define GL_HARDMIX_NV 0x92A9 |
| 250 #define GL_HSL_COLOR_NV 0x92AF |
| 251 #define GL_HSL_HUE_NV 0x92AD |
| 252 #define GL_HSL_LUMINOSITY_NV 0x92B0 |
| 253 #define GL_HSL_SATURATION_NV 0x92AE |
| 254 #define GL_INVERT_OVG_NV 0x92B4 |
| 255 #define GL_INVERT_RGB_NV 0x92A3 |
| 256 #define GL_LIGHTEN_NV 0x9298 |
| 257 #define GL_LINEARBURN_NV 0x92A5 |
| 258 #define GL_LINEARDODGE_NV 0x92A4 |
| 259 #define GL_LINEARLIGHT_NV 0x92A7 |
| 260 #define GL_MINUS_CLAMPED_NV 0x92B3 |
| 261 #define GL_MINUS_NV 0x929F |
| 262 #define GL_MULTIPLY_NV 0x9294 |
| 263 #define GL_OVERLAY_NV 0x9296 |
| 264 #define GL_PINLIGHT_NV 0x92A8 |
| 265 #define GL_PLUS_CLAMPED_ALPHA_NV 0x92B2 |
| 266 #define GL_PLUS_CLAMPED_NV 0x92B1 |
| 267 #define GL_PLUS_DARKER_NV 0x9292 |
| 268 #define GL_PLUS_NV 0x9291 |
| 269 #define GL_RED_NV 0x1903 |
| 270 #define GL_SCREEN_NV 0x9295 |
| 271 #define GL_SOFTLIGHT_NV 0x929C |
| 272 #define GL_SRC_ATOP_NV 0x928E |
| 273 #define GL_SRC_IN_NV 0x928A |
| 274 #define GL_SRC_NV 0x9286 |
| 275 #define GL_SRC_OUT_NV 0x928C |
| 276 #define GL_SRC_OVER_NV 0x9288 |
| 277 #define GL_UNCORRELATED_NV 0x9282 |
| 278 #define GL_VIVIDLIGHT_NV 0x92A6 |
| 279 #define GL_XOR_NV 0x1506 |
| 280 #endif /* GL_NV_blend_equation_advanced */ |
| 281 |
| 282 #ifndef GL_NV_blend_equation_advanced_coherent |
| 283 #define GL_NV_blend_equation_advanced_coherent 1 |
| 284 #define GL_BLEND_ADVANCED_COHERENT_NV 0x9285 |
| 285 #endif /* GL_NV_blend_equation_advanced_coherent */ |
| 286 |
229 #ifndef GL_EXT_disjoint_timer_query | 287 #ifndef GL_EXT_disjoint_timer_query |
230 #define GL_EXT_disjoint_timer_query 1 | 288 #define GL_EXT_disjoint_timer_query 1 |
231 #define GL_QUERY_COUNTER_BITS_EXT 0x8864 | 289 #define GL_QUERY_COUNTER_BITS_EXT 0x8864 |
232 #define GL_TIME_ELAPSED_EXT 0x88BF | 290 #define GL_TIME_ELAPSED_EXT 0x88BF |
233 #define GL_TIMESTAMP_EXT 0x8E28 | 291 #define GL_TIMESTAMP_EXT 0x8E28 |
234 #define GL_GPU_DISJOINT_EXT 0x8FBB | 292 #define GL_GPU_DISJOINT_EXT 0x8FBB |
235 #endif | 293 #endif |
236 | 294 |
237 #define GL_GLEXT_PROTOTYPES 1 | 295 #define GL_GLEXT_PROTOTYPES 1 |
238 | 296 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 #elif defined(OS_ANDROID) | 431 #elif defined(OS_ANDROID) |
374 | 432 |
375 GL_EXPORT extern EGLApi* g_current_egl_context; | 433 GL_EXPORT extern EGLApi* g_current_egl_context; |
376 GL_EXPORT extern DriverEGL g_driver_egl; | 434 GL_EXPORT extern DriverEGL g_driver_egl; |
377 | 435 |
378 #endif | 436 #endif |
379 | 437 |
380 } // namespace gfx | 438 } // namespace gfx |
381 | 439 |
382 #endif // UI_GL_GL_BINDINGS_H_ | 440 #endif // UI_GL_GL_BINDINGS_H_ |
OLD | NEW |