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 #include <string> | 8 #include <string> |
9 | 9 |
10 // Includes the platform independent and platform dependent GL headers. | 10 // Includes the platform independent and platform dependent GL headers. |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 #endif | 217 #endif |
218 | 218 |
219 #ifndef GL_IMG_multisampled_render_to_texture | 219 #ifndef GL_IMG_multisampled_render_to_texture |
220 #define GL_RENDERBUFFER_SAMPLES_IMG 0x9133 | 220 #define GL_RENDERBUFFER_SAMPLES_IMG 0x9133 |
221 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134 | 221 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134 |
222 #define GL_MAX_SAMPLES_IMG 0x9135 | 222 #define GL_MAX_SAMPLES_IMG 0x9135 |
223 #define GL_TEXTURE_SAMPLES_IMG 0x9136 | 223 #define GL_TEXTURE_SAMPLES_IMG 0x9136 |
224 #endif | 224 #endif |
225 | 225 |
226 #ifndef GL_CHROMIUM_path_rendering | 226 #ifndef GL_CHROMIUM_path_rendering |
| 227 #define GL_CHROMIUM_path_rendering 1 |
227 // These match the corresponding values in NV_path_rendering | 228 // These match the corresponding values in NV_path_rendering |
228 // extension, eg tokens with CHROMIUM replaced with NV. | 229 // extension, eg tokens with CHROMIUM replaced with NV. |
229 #define GL_PATH_MODELVIEW_MATRIX_CHROMIUM 0x0BA6 | 230 #define GL_PATH_MODELVIEW_MATRIX_CHROMIUM 0x0BA6 |
230 #define GL_PATH_PROJECTION_MATRIX_CHROMIUM 0x0BA7 | 231 #define GL_PATH_PROJECTION_MATRIX_CHROMIUM 0x0BA7 |
231 #define GL_PATH_MODELVIEW_CHROMIUM 0x1700 | 232 #define GL_PATH_MODELVIEW_CHROMIUM 0x1700 |
232 #define GL_PATH_PROJECTION_CHROMIUM 0x1701 | 233 #define GL_PATH_PROJECTION_CHROMIUM 0x1701 |
| 234 #define GL_FLAT_CHROMIUM 0x1D00 |
| 235 #define GL_CLOSE_PATH_CHROMIUM 0x00 |
| 236 #define GL_MOVE_TO_CHROMIUM 0x02 |
| 237 #define GL_LINE_TO_CHROMIUM 0x04 |
| 238 #define GL_QUADRATIC_CURVE_TO_CHROMIUM 0x0A |
| 239 #define GL_CUBIC_CURVE_TO_CHROMIUM 0x0C |
| 240 #define GL_CONIC_CURVE_TO_CHROMIUM 0x1A |
| 241 #define GL_PATH_STROKE_WIDTH_CHROMIUM 0x9075 |
| 242 #define GL_PATH_END_CAPS_CHROMIUM 0x9076 |
| 243 #define GL_PATH_JOIN_STYLE_CHROMIUM 0x9079 |
| 244 #define GL_PATH_MITER_LIMIT_CHROMIUM 0x907a |
| 245 #define GL_PATH_STROKE_BOUND_CHROMIUM 0x9086 |
| 246 #define GL_COUNT_UP_CHROMIUM 0x9088 |
| 247 #define GL_COUNT_DOWN_CHROMIUM 0x9089 |
| 248 #define GL_CONVEX_HULL_CHROMIUM 0x908B |
| 249 #define GL_BOUNDING_BOX_CHROMIUM 0x908D |
| 250 #define GL_SQUARE_CHROMIUM 0x90a3 |
| 251 #define GL_ROUND_CHROMIUM 0x90a4 |
| 252 #define GL_BEVEL_CHROMIUM 0x90a6 |
| 253 #define GL_MITER_REVERT_CHROMIUM 0x90a7 |
| 254 #define GL_PATH_STENCIL_FUNC_CHROMIUM 0x90B7 |
| 255 #define GL_PATH_STENCIL_REF_CHROMIUM 0x90B8 |
| 256 #define GL_PATH_STENCIL_VALUE_MASK_CHROMIUM 0x90B9 |
233 #endif | 257 #endif |
234 | 258 |
235 #ifndef GL_KHR_blend_equation_advanced | 259 #ifndef GL_KHR_blend_equation_advanced |
236 #define GL_KHR_blend_equation_advanced 1 | 260 #define GL_KHR_blend_equation_advanced 1 |
237 #define GL_COLORBURN_KHR 0x929A | 261 #define GL_COLORBURN_KHR 0x929A |
238 #define GL_COLORDODGE_KHR 0x9299 | 262 #define GL_COLORDODGE_KHR 0x9299 |
239 #define GL_DARKEN_KHR 0x9297 | 263 #define GL_DARKEN_KHR 0x9297 |
240 #define GL_DIFFERENCE_KHR 0x929E | 264 #define GL_DIFFERENCE_KHR 0x929E |
241 #define GL_EXCLUSION_KHR 0x92A0 | 265 #define GL_EXCLUSION_KHR 0x92A0 |
242 #define GL_HARDLIGHT_KHR 0x929B | 266 #define GL_HARDLIGHT_KHR 0x929B |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 #elif defined(OS_ANDROID) | 455 #elif defined(OS_ANDROID) |
432 | 456 |
433 GL_EXPORT extern EGLApi* g_current_egl_context; | 457 GL_EXPORT extern EGLApi* g_current_egl_context; |
434 GL_EXPORT extern DriverEGL g_driver_egl; | 458 GL_EXPORT extern DriverEGL g_driver_egl; |
435 | 459 |
436 #endif | 460 #endif |
437 | 461 |
438 } // namespace gfx | 462 } // namespace gfx |
439 | 463 |
440 #endif // UI_GL_GL_BINDINGS_H_ | 464 #endif // UI_GL_GL_BINDINGS_H_ |
OLD | NEW |