| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 #ifndef GrGLUtil_DEFINED | 8 #ifndef GrGLUtil_DEFINED |
| 9 #define GrGLUtil_DEFINED | 9 #define GrGLUtil_DEFINED |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 /** | 34 /** |
| 35 * The Vendor and Renderer enum values are lazily updated as required. | 35 * The Vendor and Renderer enum values are lazily updated as required. |
| 36 */ | 36 */ |
| 37 enum GrGLVendor { | 37 enum GrGLVendor { |
| 38 kARM_GrGLVendor, | 38 kARM_GrGLVendor, |
| 39 kImagination_GrGLVendor, | 39 kImagination_GrGLVendor, |
| 40 kIntel_GrGLVendor, | 40 kIntel_GrGLVendor, |
| 41 kQualcomm_GrGLVendor, | 41 kQualcomm_GrGLVendor, |
| 42 kNVIDIA_GrGLVendor, | 42 kNVIDIA_GrGLVendor, |
| 43 kATI_GrGLVendor, |
| 43 | 44 |
| 44 kOther_GrGLVendor | 45 kOther_GrGLVendor |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 enum GrGLRenderer { | 48 enum GrGLRenderer { |
| 48 kTegra2_GrGLRenderer, | 49 kTegra2_GrGLRenderer, |
| 49 kTegra3_GrGLRenderer, | 50 kTegra3_GrGLRenderer, |
| 50 kPowerVR54x_GrGLRenderer, | 51 kPowerVR54x_GrGLRenderer, |
| 51 kPowerVRRogue_GrGLRenderer, | 52 kPowerVRRogue_GrGLRenderer, |
| 52 kAdreno3xx_GrGLRenderer, | 53 kAdreno3xx_GrGLRenderer, |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 GR_GL_LOG_CALLS_IMPL(X); \ | 203 GR_GL_LOG_CALLS_IMPL(X); \ |
| 203 } while (false) | 204 } while (false) |
| 204 | 205 |
| 205 // call glGetError without doing a redundant error check or logging. | 206 // call glGetError without doing a redundant error check or logging. |
| 206 #define GR_GL_GET_ERROR(IFACE) (IFACE)->fFunctions.fGetError() | 207 #define GR_GL_GET_ERROR(IFACE) (IFACE)->fFunctions.fGetError() |
| 207 | 208 |
| 208 GrGLenum GrToGLStencilFunc(GrStencilTest test); | 209 GrGLenum GrToGLStencilFunc(GrStencilTest test); |
| 209 | 210 |
| 210 | 211 |
| 211 #endif | 212 #endif |
| OLD | NEW |