| 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 | |
| 165 | 164 |
| 166 /* ErrorCode */ | 165 /* ErrorCode */ |
| 167 #define GR_GL_NO_ERROR 0 | 166 #define GR_GL_NO_ERROR 0 |
| 168 #define GR_GL_INVALID_ENUM 0x0500 | 167 #define GR_GL_INVALID_ENUM 0x0500 |
| 169 #define GR_GL_INVALID_VALUE 0x0501 | 168 #define GR_GL_INVALID_VALUE 0x0501 |
| 170 #define GR_GL_INVALID_OPERATION 0x0502 | 169 #define GR_GL_INVALID_OPERATION 0x0502 |
| 171 #define GR_GL_OUT_OF_MEMORY 0x0505 | 170 #define GR_GL_OUT_OF_MEMORY 0x0505 |
| 172 #define GR_GL_CONTEXT_LOST 0x300E // TODO(gman): What value? | 171 #define GR_GL_CONTEXT_LOST 0x300E // TODO(gman): What value? |
| 173 | 172 |
| 174 /* FrontFaceDirection */ | 173 /* FrontFaceDirection */ |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 #define GR_GL_RGBA16F 0x881A | 414 #define GR_GL_RGBA16F 0x881A |
| 416 #define GR_GL_ALPHA16F 0x881C | 415 #define GR_GL_ALPHA16F 0x881C |
| 417 | 416 |
| 418 /* PixelType */ | 417 /* PixelType */ |
| 419 /* GL_UNSIGNED_BYTE */ | 418 /* GL_UNSIGNED_BYTE */ |
| 420 #define GR_GL_UNSIGNED_SHORT_4_4_4_4 0x8033 | 419 #define GR_GL_UNSIGNED_SHORT_4_4_4_4 0x8033 |
| 421 #define GR_GL_UNSIGNED_SHORT_5_5_5_1 0x8034 | 420 #define GR_GL_UNSIGNED_SHORT_5_5_5_1 0x8034 |
| 422 #define GR_GL_UNSIGNED_SHORT_5_6_5 0x8363 | 421 #define GR_GL_UNSIGNED_SHORT_5_6_5 0x8363 |
| 423 | 422 |
| 424 /* Shaders */ | 423 /* Shaders */ |
| 425 #define GR_GL_FRAGMENT_SHADER 0x8B30 | 424 #define GR_GL_FRAGMENT_SHADER 0x8B30 |
| 426 #define GR_GL_VERTEX_SHADER 0x8B31 | 425 #define GR_GL_VERTEX_SHADER 0x8B31 |
| 427 #define GR_GL_GEOMETRY_SHADER 0x8DD9 | 426 #define GR_GL_GEOMETRY_SHADER 0x8DD9 |
| 428 #define GR_GL_MAX_VERTEX_ATTRIBS 0x8869 | 427 #define GR_GL_MAX_VERTEX_ATTRIBS 0x8869 |
| 429 #define GR_GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB | 428 #define GR_GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB |
| 430 #define GR_GL_MAX_VARYING_VECTORS 0x8DFC | 429 #define GR_GL_MAX_VARYING_VECTORS 0x8DFC |
| 431 #define GR_GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D | 430 #define GR_GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D |
| 432 #define GR_GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C | 431 #define GR_GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C |
| 433 #define GR_GL_MAX_TEXTURE_IMAGE_UNITS 0x8872 | 432 #define GR_GL_MAX_TEXTURE_IMAGE_UNITS 0x8872 |
| 434 #define GR_GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD | 433 #define GR_GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD |
| 435 #define GR_GL_SHADER_TYPE 0x8B4F | 434 #define GR_GL_SHADER_TYPE 0x8B4F |
| 436 #define GR_GL_DELETE_STATUS 0x8B80 | 435 #define GR_GL_DELETE_STATUS 0x8B80 |
| 437 #define GR_GL_LINK_STATUS 0x8B82 | 436 #define GR_GL_LINK_STATUS 0x8B82 |
| 438 #define GR_GL_VALIDATE_STATUS 0x8B83 | 437 #define GR_GL_VALIDATE_STATUS 0x8B83 |
| 439 #define GR_GL_ATTACHED_SHADERS 0x8B85 | 438 #define GR_GL_ATTACHED_SHADERS 0x8B85 |
| 440 #define GR_GL_ACTIVE_UNIFORMS 0x8B86 | 439 #define GR_GL_ACTIVE_UNIFORMS 0x8B86 |
| 441 #define GR_GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87 | 440 #define GR_GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87 |
| 442 #define GR_GL_ACTIVE_ATTRIBUTES 0x8B89 | 441 #define GR_GL_ACTIVE_ATTRIBUTES 0x8B89 |
| 443 #define GR_GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A | 442 #define GR_GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A |
| 444 #define GR_GL_SHADING_LANGUAGE_VERSION 0x8B8C | 443 #define GR_GL_SHADING_LANGUAGE_VERSION 0x8B8C |
| 445 #define GR_GL_CURRENT_PROGRAM 0x8B8D | 444 #define GR_GL_CURRENT_PROGRAM 0x8B8D |
| 446 #define GR_GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49 | 445 #define GR_GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49 |
| 447 #define GR_GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A | 446 #define GR_GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A |
| 448 #define GR_GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE 0x8F63 | |
| 449 | 447 |
| 450 /* StencilFunction */ | 448 /* StencilFunction */ |
| 451 #define GR_GL_NEVER 0x0200 | 449 #define GR_GL_NEVER 0x0200 |
| 452 #define GR_GL_LESS 0x0201 | 450 #define GR_GL_LESS 0x0201 |
| 453 #define GR_GL_EQUAL 0x0202 | 451 #define GR_GL_EQUAL 0x0202 |
| 454 #define GR_GL_LEQUAL 0x0203 | 452 #define GR_GL_LEQUAL 0x0203 |
| 455 #define GR_GL_GREATER 0x0204 | 453 #define GR_GL_GREATER 0x0204 |
| 456 #define GR_GL_NOTEQUAL 0x0205 | 454 #define GR_GL_NOTEQUAL 0x0205 |
| 457 #define GR_GL_GEQUAL 0x0206 | 455 #define GR_GL_GEQUAL 0x0206 |
| 458 #define GR_GL_ALWAYS 0x0207 | 456 #define GR_GL_ALWAYS 0x0207 |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 949 #define GR_EGL_EXTENSIONS 0x3055 | 947 #define GR_EGL_EXTENSIONS 0x3055 |
| 950 #define GR_EGL_GL_TEXTURE_2D 0x30B1 | 948 #define GR_EGL_GL_TEXTURE_2D 0x30B1 |
| 951 #define GR_EGL_GL_TEXTURE_LEVEL 0x30BC | 949 #define GR_EGL_GL_TEXTURE_LEVEL 0x30BC |
| 952 #define GR_EGL_IMAGE_PRESERVED 0x30D2 | 950 #define GR_EGL_IMAGE_PRESERVED 0x30D2 |
| 953 #define GR_EGL_FALSE 0x0 | 951 #define GR_EGL_FALSE 0x0 |
| 954 #define GR_EGL_TRUE 0x1 | 952 #define GR_EGL_TRUE 0x1 |
| 955 #define GR_EGL_NONE 0x3038 | 953 #define GR_EGL_NONE 0x3038 |
| 956 #define GR_EGL_NO_IMAGE ((GrEGLImage)0) | 954 #define GR_EGL_NO_IMAGE ((GrEGLImage)0) |
| 957 | 955 |
| 958 #endif | 956 #endif |
| OLD | NEW |