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 27 matching lines...) Expand all Loading... |
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 kPowerVR54x_GrGLRenderer, | 46 kPowerVR54x_GrGLRenderer, |
47 kPowerVRRogue_GrGLRenderer, | 47 kPowerVRRogue_GrGLRenderer, |
| 48 kAdreno3xx_GrGLRenderer, |
| 49 kAdreno4xx_GrGLRenderer, |
48 kOther_GrGLRenderer | 50 kOther_GrGLRenderer |
49 }; | 51 }; |
50 | 52 |
51 //////////////////////////////////////////////////////////////////////////////// | 53 //////////////////////////////////////////////////////////////////////////////// |
52 | 54 |
53 /** | 55 /** |
54 * Some drivers want the var-int arg to be zero-initialized on input. | 56 * Some drivers want the var-int arg to be zero-initialized on input. |
55 */ | 57 */ |
56 #define GR_GL_INIT_ZERO 0 | 58 #define GR_GL_INIT_ZERO 0 |
57 #define GR_GL_GetIntegerv(gl, e, p) \ | 59 #define GR_GL_GetIntegerv(gl, e, p) \ |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 GR_GL_LOG_CALLS_IMPL(X); \ | 191 GR_GL_LOG_CALLS_IMPL(X); \ |
190 } while (false) | 192 } while (false) |
191 | 193 |
192 // call glGetError without doing a redundant error check or logging. | 194 // call glGetError without doing a redundant error check or logging. |
193 #define GR_GL_GET_ERROR(IFACE) (IFACE)->fFunctions.fGetError() | 195 #define GR_GL_GET_ERROR(IFACE) (IFACE)->fFunctions.fGetError() |
194 | 196 |
195 GrGLenum GrToGLStencilFunc(GrStencilFunc basicFunc); | 197 GrGLenum GrToGLStencilFunc(GrStencilFunc basicFunc); |
196 | 198 |
197 | 199 |
198 #endif | 200 #endif |
OLD | NEW |