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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 kAdreno3xx_GrGLRenderer, | 52 kAdreno3xx_GrGLRenderer, |
53 kAdreno4xx_GrGLRenderer, | 53 kAdreno4xx_GrGLRenderer, |
54 kOther_GrGLRenderer | 54 kOther_GrGLRenderer |
55 }; | 55 }; |
56 | 56 |
57 enum GrGLDriver { | 57 enum GrGLDriver { |
58 kMesa_GrGLDriver, | 58 kMesa_GrGLDriver, |
59 kChromium_GrGLDriver, | 59 kChromium_GrGLDriver, |
60 kNVIDIA_GrGLDriver, | 60 kNVIDIA_GrGLDriver, |
61 kIntel_GrGLDriver, | 61 kIntel_GrGLDriver, |
| 62 kANGLE_GrGLDriver, |
62 kUnknown_GrGLDriver | 63 kUnknown_GrGLDriver |
63 }; | 64 }; |
64 | 65 |
65 //////////////////////////////////////////////////////////////////////////////// | 66 //////////////////////////////////////////////////////////////////////////////// |
66 | 67 |
67 /** | 68 /** |
68 * Some drivers want the var-int arg to be zero-initialized on input. | 69 * Some drivers want the var-int arg to be zero-initialized on input. |
69 */ | 70 */ |
70 #define GR_GL_INIT_ZERO 0 | 71 #define GR_GL_INIT_ZERO 0 |
71 #define GR_GL_GetIntegerv(gl, e, p) \ | 72 #define GR_GL_GetIntegerv(gl, e, p) \ |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 GR_GL_LOG_CALLS_IMPL(X); \ | 209 GR_GL_LOG_CALLS_IMPL(X); \ |
209 } while (false) | 210 } while (false) |
210 | 211 |
211 // call glGetError without doing a redundant error check or logging. | 212 // call glGetError without doing a redundant error check or logging. |
212 #define GR_GL_GET_ERROR(IFACE) (IFACE)->fFunctions.fGetError() | 213 #define GR_GL_GET_ERROR(IFACE) (IFACE)->fFunctions.fGetError() |
213 | 214 |
214 GrGLenum GrToGLStencilFunc(GrStencilFunc basicFunc); | 215 GrGLenum GrToGLStencilFunc(GrStencilFunc basicFunc); |
215 | 216 |
216 | 217 |
217 #endif | 218 #endif |
OLD | NEW |