OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 GrTypesPriv_DEFINED | 8 #ifndef GrTypesPriv_DEFINED |
9 #define GrTypesPriv_DEFINED | 9 #define GrTypesPriv_DEFINED |
10 | 10 |
11 #include "GrTypes.h" | 11 #include "GrTypes.h" |
12 #include "SkTArray.h" | 12 #include "SkTArray.h" |
13 #include "SkRect.h" | 13 #include "SkRect.h" |
14 | 14 |
15 /** | 15 /** |
16 * Types of shader-language-specific boxed variables we can create. (Currently
only GrGLShaderVars, | 16 * Types of shader-language-specific boxed variables we can create. (Currently o
nly GrGLShaderVars, |
17 * but should be applicable to other shader languages.) | 17 * but should be applicable to other shader languages.) |
18 */ | 18 */ |
19 enum GrSLType { | 19 enum GrSLType { |
20 kVoid_GrSLType, | 20 kVoid_GrSLType, |
21 kFloat_GrSLType, | 21 kFloat_GrSLType, |
22 kVec2f_GrSLType, | 22 kVec2f_GrSLType, |
23 kVec3f_GrSLType, | 23 kVec3f_GrSLType, |
24 kVec4f_GrSLType, | 24 kVec4f_GrSLType, |
25 kMat33f_GrSLType, | 25 kMat33f_GrSLType, |
26 kMat44f_GrSLType, | 26 kMat44f_GrSLType, |
27 kSampler2D_GrSLType, | 27 kSampler2D_GrSLType, |
28 kSamplerExternal_GrSLType, | 28 kSamplerExternal_GrSLType, |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 // Takes a pointer to a GrCaps, and will suppress prints if required | 283 // Takes a pointer to a GrCaps, and will suppress prints if required |
284 #define GrCapsDebugf(caps, ...) \ | 284 #define GrCapsDebugf(caps, ...) \ |
285 if (!caps->suppressPrints()) { \ | 285 if (!caps->suppressPrints()) { \ |
286 SkDebugf(__VA_ARGS__); \ | 286 SkDebugf(__VA_ARGS__); \ |
287 } | 287 } |
288 #else | 288 #else |
289 #define GrCapsDebugf(caps, ...) | 289 #define GrCapsDebugf(caps, ...) |
290 #endif | 290 #endif |
291 | 291 |
292 #endif | 292 #endif |
OLD | NEW |