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 16 matching lines...) Expand all Loading... |
27 #define GR_GLSL_INVALID_VER GR_GL_VER(0, 0) | 27 #define GR_GLSL_INVALID_VER GR_GL_VER(0, 0) |
28 | 28 |
29 /** | 29 /** |
30 * The Vendor and Renderer enum values are lazily updated as required. | 30 * The Vendor and Renderer enum values are lazily updated as required. |
31 */ | 31 */ |
32 enum GrGLVendor { | 32 enum GrGLVendor { |
33 kARM_GrGLVendor, | 33 kARM_GrGLVendor, |
34 kImagination_GrGLVendor, | 34 kImagination_GrGLVendor, |
35 kIntel_GrGLVendor, | 35 kIntel_GrGLVendor, |
36 kQualcomm_GrGLVendor, | 36 kQualcomm_GrGLVendor, |
| 37 kNVIDIA_GrGLVendor, |
37 | 38 |
38 kOther_GrGLVendor | 39 kOther_GrGLVendor |
39 }; | 40 }; |
40 | 41 |
41 enum GrGLRenderer { | 42 enum GrGLRenderer { |
42 kTegra2_GrGLRenderer, | 43 kTegra2_GrGLRenderer, |
43 kTegra3_GrGLRenderer, | 44 kTegra3_GrGLRenderer, |
44 | 45 |
45 kOther_GrGLRenderer | 46 kOther_GrGLRenderer |
46 }; | 47 }; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 do { \ | 175 do { \ |
175 GR_GL_CALLBACK_IMPL(IFACE); \ | 176 GR_GL_CALLBACK_IMPL(IFACE); \ |
176 (RET) = (IFACE)->fFunctions.f##X; \ | 177 (RET) = (IFACE)->fFunctions.f##X; \ |
177 GR_GL_LOG_CALLS_IMPL(X); \ | 178 GR_GL_LOG_CALLS_IMPL(X); \ |
178 } while (false) | 179 } while (false) |
179 | 180 |
180 // call glGetError without doing a redundant error check or logging. | 181 // call glGetError without doing a redundant error check or logging. |
181 #define GR_GL_GET_ERROR(IFACE) (IFACE)->fFunctions.fGetError() | 182 #define GR_GL_GET_ERROR(IFACE) (IFACE)->fFunctions.fGetError() |
182 | 183 |
183 #endif | 184 #endif |
OLD | NEW |