OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 | 8 |
9 | 9 |
10 #ifndef GrGLDefines_DEFINED | 10 #ifndef GrGLDefines_DEFINED |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 #define GR_GL_SAMPLE_COVERAGE 0x80A0 | 154 #define GR_GL_SAMPLE_COVERAGE 0x80A0 |
155 #define GR_GL_POLYGON_OFFSET_FILL 0x8037 | 155 #define GR_GL_POLYGON_OFFSET_FILL 0x8037 |
156 #define GR_GL_POLYGON_SMOOTH 0x0B41 | 156 #define GR_GL_POLYGON_SMOOTH 0x0B41 |
157 #define GR_GL_POLYGON_STIPPLE 0x0B42 | 157 #define GR_GL_POLYGON_STIPPLE 0x0B42 |
158 #define GR_GL_COLOR_LOGIC_OP 0x0BF2 | 158 #define GR_GL_COLOR_LOGIC_OP 0x0BF2 |
159 #define GR_GL_COLOR_TABLE 0x80D0 | 159 #define GR_GL_COLOR_TABLE 0x80D0 |
160 #define GR_GL_INDEX_LOGIC_OP 0x0BF1 | 160 #define GR_GL_INDEX_LOGIC_OP 0x0BF1 |
161 #define GR_GL_VERTEX_PROGRAM_POINT_SIZE 0x8642 | 161 #define GR_GL_VERTEX_PROGRAM_POINT_SIZE 0x8642 |
162 #define GR_GL_LINE_STIPPLE 0x0B24 | 162 #define GR_GL_LINE_STIPPLE 0x0B24 |
163 #define GR_GL_FRAMEBUFFER_SRGB 0x8DB9 | 163 #define GR_GL_FRAMEBUFFER_SRGB 0x8DB9 |
| 164 #define GR_GL_SHADER_PIXEL_LOCAL_STORAGE 0x8F64 |
164 | 165 |
165 /* ErrorCode */ | 166 /* ErrorCode */ |
166 #define GR_GL_NO_ERROR 0 | 167 #define GR_GL_NO_ERROR 0 |
167 #define GR_GL_INVALID_ENUM 0x0500 | 168 #define GR_GL_INVALID_ENUM 0x0500 |
168 #define GR_GL_INVALID_VALUE 0x0501 | 169 #define GR_GL_INVALID_VALUE 0x0501 |
169 #define GR_GL_INVALID_OPERATION 0x0502 | 170 #define GR_GL_INVALID_OPERATION 0x0502 |
170 #define GR_GL_OUT_OF_MEMORY 0x0505 | 171 #define GR_GL_OUT_OF_MEMORY 0x0505 |
171 #define GR_GL_CONTEXT_LOST 0x300E // TODO(gman): What value? | 172 #define GR_GL_CONTEXT_LOST 0x300E // TODO(gman): What value? |
172 | 173 |
173 /* FrontFaceDirection */ | 174 /* FrontFaceDirection */ |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 #define GR_GL_RGBA16F 0x881A | 415 #define GR_GL_RGBA16F 0x881A |
415 #define GR_GL_ALPHA16F 0x881C | 416 #define GR_GL_ALPHA16F 0x881C |
416 | 417 |
417 /* PixelType */ | 418 /* PixelType */ |
418 /* GL_UNSIGNED_BYTE */ | 419 /* GL_UNSIGNED_BYTE */ |
419 #define GR_GL_UNSIGNED_SHORT_4_4_4_4 0x8033 | 420 #define GR_GL_UNSIGNED_SHORT_4_4_4_4 0x8033 |
420 #define GR_GL_UNSIGNED_SHORT_5_5_5_1 0x8034 | 421 #define GR_GL_UNSIGNED_SHORT_5_5_5_1 0x8034 |
421 #define GR_GL_UNSIGNED_SHORT_5_6_5 0x8363 | 422 #define GR_GL_UNSIGNED_SHORT_5_6_5 0x8363 |
422 | 423 |
423 /* Shaders */ | 424 /* Shaders */ |
424 #define GR_GL_FRAGMENT_SHADER 0x8B30 | 425 #define GR_GL_FRAGMENT_SHADER 0x8B30 |
425 #define GR_GL_VERTEX_SHADER 0x8B31 | 426 #define GR_GL_VERTEX_SHADER 0x8B31 |
426 #define GR_GL_GEOMETRY_SHADER 0x8DD9 | 427 #define GR_GL_GEOMETRY_SHADER 0x8DD9 |
427 #define GR_GL_MAX_VERTEX_ATTRIBS 0x8869 | 428 #define GR_GL_MAX_VERTEX_ATTRIBS 0x8869 |
428 #define GR_GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB | 429 #define GR_GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB |
429 #define GR_GL_MAX_VARYING_VECTORS 0x8DFC | 430 #define GR_GL_MAX_VARYING_VECTORS 0x8DFC |
430 #define GR_GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D | 431 #define GR_GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D |
431 #define GR_GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C | 432 #define GR_GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C |
432 #define GR_GL_MAX_TEXTURE_IMAGE_UNITS 0x8872 | 433 #define GR_GL_MAX_TEXTURE_IMAGE_UNITS 0x8872 |
433 #define GR_GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD | 434 #define GR_GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD |
434 #define GR_GL_SHADER_TYPE 0x8B4F | 435 #define GR_GL_SHADER_TYPE 0x8B4F |
435 #define GR_GL_DELETE_STATUS 0x8B80 | 436 #define GR_GL_DELETE_STATUS 0x8B80 |
436 #define GR_GL_LINK_STATUS 0x8B82 | 437 #define GR_GL_LINK_STATUS 0x8B82 |
437 #define GR_GL_VALIDATE_STATUS 0x8B83 | 438 #define GR_GL_VALIDATE_STATUS 0x8B83 |
438 #define GR_GL_ATTACHED_SHADERS 0x8B85 | 439 #define GR_GL_ATTACHED_SHADERS 0x8B85 |
439 #define GR_GL_ACTIVE_UNIFORMS 0x8B86 | 440 #define GR_GL_ACTIVE_UNIFORMS 0x8B86 |
440 #define GR_GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87 | 441 #define GR_GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87 |
441 #define GR_GL_ACTIVE_ATTRIBUTES 0x8B89 | 442 #define GR_GL_ACTIVE_ATTRIBUTES 0x8B89 |
442 #define GR_GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A | 443 #define GR_GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A |
443 #define GR_GL_SHADING_LANGUAGE_VERSION 0x8B8C | 444 #define GR_GL_SHADING_LANGUAGE_VERSION 0x8B8C |
444 #define GR_GL_CURRENT_PROGRAM 0x8B8D | 445 #define GR_GL_CURRENT_PROGRAM 0x8B8D |
445 #define GR_GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49 | 446 #define GR_GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49 |
446 #define GR_GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A | 447 #define GR_GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A |
| 448 #define GR_GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE 0x8F63 |
447 | 449 |
448 /* StencilFunction */ | 450 /* StencilFunction */ |
449 #define GR_GL_NEVER 0x0200 | 451 #define GR_GL_NEVER 0x0200 |
450 #define GR_GL_LESS 0x0201 | 452 #define GR_GL_LESS 0x0201 |
451 #define GR_GL_EQUAL 0x0202 | 453 #define GR_GL_EQUAL 0x0202 |
452 #define GR_GL_LEQUAL 0x0203 | 454 #define GR_GL_LEQUAL 0x0203 |
453 #define GR_GL_GREATER 0x0204 | 455 #define GR_GL_GREATER 0x0204 |
454 #define GR_GL_NOTEQUAL 0x0205 | 456 #define GR_GL_NOTEQUAL 0x0205 |
455 #define GR_GL_GEQUAL 0x0206 | 457 #define GR_GL_GEQUAL 0x0206 |
456 #define GR_GL_ALWAYS 0x0207 | 458 #define GR_GL_ALWAYS 0x0207 |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
947 #define GR_EGL_EXTENSIONS 0x3055 | 949 #define GR_EGL_EXTENSIONS 0x3055 |
948 #define GR_EGL_GL_TEXTURE_2D 0x30B1 | 950 #define GR_EGL_GL_TEXTURE_2D 0x30B1 |
949 #define GR_EGL_GL_TEXTURE_LEVEL 0x30BC | 951 #define GR_EGL_GL_TEXTURE_LEVEL 0x30BC |
950 #define GR_EGL_IMAGE_PRESERVED 0x30D2 | 952 #define GR_EGL_IMAGE_PRESERVED 0x30D2 |
951 #define GR_EGL_FALSE 0x0 | 953 #define GR_EGL_FALSE 0x0 |
952 #define GR_EGL_TRUE 0x1 | 954 #define GR_EGL_TRUE 0x1 |
953 #define GR_EGL_NONE 0x3038 | 955 #define GR_EGL_NONE 0x3038 |
954 #define GR_EGL_NO_IMAGE ((GrEGLImage)0) | 956 #define GR_EGL_NO_IMAGE ((GrEGLImage)0) |
955 | 957 |
956 #endif | 958 #endif |
OLD | NEW |