| 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 23 matching lines...) Expand all Loading... |
| 34 kImagination_GrGLVendor, | 34 kImagination_GrGLVendor, |
| 35 kIntel_GrGLVendor, | 35 kIntel_GrGLVendor, |
| 36 kQualcomm_GrGLVendor, | 36 kQualcomm_GrGLVendor, |
| 37 | 37 |
| 38 kOther_GrGLVendor | 38 kOther_GrGLVendor |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 enum GrGLRenderer { | 41 enum GrGLRenderer { |
| 42 kTegra2_GrGLRenderer, | 42 kTegra2_GrGLRenderer, |
| 43 kTegra3_GrGLRenderer, | 43 kTegra3_GrGLRenderer, |
| 44 kPVRRogueHood_GrGLRenderer, |
| 44 | 45 |
| 45 kOther_GrGLRenderer | 46 kOther_GrGLRenderer |
| 46 }; | 47 }; |
| 47 | 48 |
| 48 //////////////////////////////////////////////////////////////////////////////// | 49 //////////////////////////////////////////////////////////////////////////////// |
| 49 | 50 |
| 50 /** | 51 /** |
| 51 * Some drivers want the var-int arg to be zero-initialized on input. | 52 * Some drivers want the var-int arg to be zero-initialized on input. |
| 52 */ | 53 */ |
| 53 #define GR_GL_INIT_ZERO 0 | 54 #define GR_GL_INIT_ZERO 0 |
| (...skipping 120 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 |