| 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 25 matching lines...) Expand all Loading... |
| 36 kIntel_GrGLVendor, | 36 kIntel_GrGLVendor, |
| 37 kQualcomm_GrGLVendor, | 37 kQualcomm_GrGLVendor, |
| 38 kNVIDIA_GrGLVendor, | 38 kNVIDIA_GrGLVendor, |
| 39 | 39 |
| 40 kOther_GrGLVendor | 40 kOther_GrGLVendor |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 enum GrGLRenderer { | 43 enum GrGLRenderer { |
| 44 kTegra2_GrGLRenderer, | 44 kTegra2_GrGLRenderer, |
| 45 kTegra3_GrGLRenderer, | 45 kTegra3_GrGLRenderer, |
| 46 | 46 kPowerVR54x_GrGLRenderer, |
| 47 kPowerVRRogue_GrGLRenderer, |
| 47 kOther_GrGLRenderer | 48 kOther_GrGLRenderer |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 //////////////////////////////////////////////////////////////////////////////// | 51 //////////////////////////////////////////////////////////////////////////////// |
| 51 | 52 |
| 52 /** | 53 /** |
| 53 * Some drivers want the var-int arg to be zero-initialized on input. | 54 * Some drivers want the var-int arg to be zero-initialized on input. |
| 54 */ | 55 */ |
| 55 #define GR_GL_INIT_ZERO 0 | 56 #define GR_GL_INIT_ZERO 0 |
| 56 #define GR_GL_GetIntegerv(gl, e, p) \ | 57 #define GR_GL_GetIntegerv(gl, e, p) \ |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 GR_GL_LOG_CALLS_IMPL(X); \ | 180 GR_GL_LOG_CALLS_IMPL(X); \ |
| 180 } while (false) | 181 } while (false) |
| 181 | 182 |
| 182 // call glGetError without doing a redundant error check or logging. | 183 // call glGetError without doing a redundant error check or logging. |
| 183 #define GR_GL_GET_ERROR(IFACE) (IFACE)->fFunctions.fGetError() | 184 #define GR_GL_GET_ERROR(IFACE) (IFACE)->fFunctions.fGetError() |
| 184 | 185 |
| 185 GrGLenum GrToGLStencilFunc(GrStencilFunc basicFunc); | 186 GrGLenum GrToGLStencilFunc(GrStencilFunc basicFunc); |
| 186 | 187 |
| 187 | 188 |
| 188 #endif | 189 #endif |
| OLD | NEW |