| 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 |
| 11 #include "gl/GrGLInterface.h" | 11 #include "gl/GrGLInterface.h" |
| 12 #include "GrGLDefines.h" | 12 #include "GrGLDefines.h" |
| 13 #include "GrStencil.h" | 13 #include "GrStencilSettings.h" |
| 14 | 14 |
| 15 class SkMatrix; | 15 class SkMatrix; |
| 16 | 16 |
| 17 //////////////////////////////////////////////////////////////////////////////// | 17 //////////////////////////////////////////////////////////////////////////////// |
| 18 | 18 |
| 19 typedef uint32_t GrGLVersion; | 19 typedef uint32_t GrGLVersion; |
| 20 typedef uint32_t GrGLSLVersion; | 20 typedef uint32_t GrGLSLVersion; |
| 21 typedef uint32_t GrGLDriverVersion; | 21 typedef uint32_t GrGLDriverVersion; |
| 22 | 22 |
| 23 #define GR_GL_VER(major, minor) ((static_cast<int>(major) << 16) | \ | 23 #define GR_GL_VER(major, minor) ((static_cast<int>(major) << 16) | \ |
| (...skipping 174 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 |