| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 134 |
| 135 void GrGLCheckErr(const GrGLInterface* gl, | 135 void GrGLCheckErr(const GrGLInterface* gl, |
| 136 const char* location, | 136 const char* location, |
| 137 const char* call); | 137 const char* call); |
| 138 | 138 |
| 139 void GrGLClearErr(const GrGLInterface* gl); | 139 void GrGLClearErr(const GrGLInterface* gl); |
| 140 | 140 |
| 141 /** | 141 /** |
| 142 * Helper for converting SkMatrix to a column-major GL float array | 142 * Helper for converting SkMatrix to a column-major GL float array |
| 143 */ | 143 */ |
| 144 template<int MatrixSize> void GrGLGetMatrix(GrGLfloat* dest, const SkMatrix& src
); | 144 template<int MatrixSize> void GrGLGetMatrix(float* dest, const SkMatrix& src); |
| 145 | 145 |
| 146 //////////////////////////////////////////////////////////////////////////////// | 146 //////////////////////////////////////////////////////////////////////////////// |
| 147 | 147 |
| 148 /** | 148 /** |
| 149 * Macros for using GrGLInterface to make GL calls | 149 * Macros for using GrGLInterface to make GL calls |
| 150 */ | 150 */ |
| 151 | 151 |
| 152 // internal macro to conditionally call glGetError based on compile-time and | 152 // internal macro to conditionally call glGetError based on compile-time and |
| 153 // run-time flags. | 153 // run-time flags. |
| 154 #if GR_GL_CHECK_ERROR | 154 #if GR_GL_CHECK_ERROR |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 GR_GL_LOG_CALLS_IMPL(X); \ | 209 GR_GL_LOG_CALLS_IMPL(X); \ |
| 210 } while (false) | 210 } while (false) |
| 211 | 211 |
| 212 // call glGetError without doing a redundant error check or logging. | 212 // call glGetError without doing a redundant error check or logging. |
| 213 #define GR_GL_GET_ERROR(IFACE) (IFACE)->fFunctions.fGetError() | 213 #define GR_GL_GET_ERROR(IFACE) (IFACE)->fFunctions.fGetError() |
| 214 | 214 |
| 215 GrGLenum GrToGLStencilFunc(GrStencilFunc basicFunc); | 215 GrGLenum GrToGLStencilFunc(GrStencilFunc basicFunc); |
| 216 | 216 |
| 217 | 217 |
| 218 #endif | 218 #endif |
| OLD | NEW |