| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // same as GR_GL_CALL_RET but always skips the error check. | 198 // same as GR_GL_CALL_RET but always skips the error check. |
| 199 #define GR_GL_CALL_RET_NOERRCHECK(IFACE, RET, X) \ | 199 #define GR_GL_CALL_RET_NOERRCHECK(IFACE, RET, X) \ |
| 200 do { \ | 200 do { \ |
| 201 (RET) = (IFACE)->fFunctions.f##X; \ | 201 (RET) = (IFACE)->fFunctions.f##X; \ |
| 202 GR_GL_LOG_CALLS_IMPL(X); \ | 202 GR_GL_LOG_CALLS_IMPL(X); \ |
| 203 } while (false) | 203 } while (false) |
| 204 | 204 |
| 205 // call glGetError without doing a redundant error check or logging. | 205 // call glGetError without doing a redundant error check or logging. |
| 206 #define GR_GL_GET_ERROR(IFACE) (IFACE)->fFunctions.fGetError() | 206 #define GR_GL_GET_ERROR(IFACE) (IFACE)->fFunctions.fGetError() |
| 207 | 207 |
| 208 GrGLenum GrToGLStencilFunc(GrStencilFunc basicFunc); | 208 GrGLenum GrToGLStencilFunc(GrStencilTest test); |
| 209 | 209 |
| 210 | 210 |
| 211 #endif | 211 #endif |
| OLD | NEW |