| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 #ifndef GrCaps_DEFINED | 8 #ifndef GrCaps_DEFINED |
| 9 #define GrCaps_DEFINED | 9 #define GrCaps_DEFINED |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; } | 63 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; } |
| 64 bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport;
} | 64 bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport;
} |
| 65 | 65 |
| 66 /** | 66 /** |
| 67 * Get the precision info for a variable of type kFloat_GrSLType, kVec2f_GrSL
Type, etc in a | 67 * Get the precision info for a variable of type kFloat_GrSLType, kVec2f_GrSL
Type, etc in a |
| 68 * given shader type. If the shader type is not supported or the precision le
vel is not | 68 * given shader type. If the shader type is not supported or the precision le
vel is not |
| 69 * supported in that shader type then the returned struct will report false w
hen supported() is | 69 * supported in that shader type then the returned struct will report false w
hen supported() is |
| 70 * called. | 70 * called. |
| 71 */ | 71 */ |
| 72 const PrecisionInfo& getFloatShaderPrecisionInfo(GrShaderType shaderType, | 72 const PrecisionInfo& getFloatShaderPrecisionInfo(GrShaderType shaderType, |
| 73 GrSLPrecision precision) const { | 73 GrSLPrecision precision) co
nst { |
| 74 return fFloatPrecisions[shaderType][precision]; | 74 return fFloatPrecisions[shaderType][precision]; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 /** | 77 /** |
| 78 * Is there any difference between the float shader variable precision types?
If this is true | 78 * Is there any difference between the float shader variable precision types?
If this is true |
| 79 * then unless the shader type is not supported, any call to getFloatShaderPr
ecisionInfo() would | 79 * then unless the shader type is not supported, any call to getFloatShaderPr
ecisionInfo() would |
| 80 * report the same info for all precisions in all shader types. | 80 * report the same info for all precisions in all shader types. |
| 81 */ | 81 */ |
| 82 bool floatPrecisionVaries() const { return fShaderPrecisionVaries; } | 82 bool floatPrecisionVaries() const { return fShaderPrecisionVaries; } |
| 83 | 83 |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; | 278 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; |
| 279 | 279 |
| 280 bool fSuppressPrints : 1; | 280 bool fSuppressPrints : 1; |
| 281 bool fImmediateFlush: 1; | 281 bool fImmediateFlush: 1; |
| 282 bool fDrawPathMasksToCompressedTextureSupport : 1; | 282 bool fDrawPathMasksToCompressedTextureSupport : 1; |
| 283 | 283 |
| 284 typedef SkRefCnt INHERITED; | 284 typedef SkRefCnt INHERITED; |
| 285 }; | 285 }; |
| 286 | 286 |
| 287 #endif | 287 #endif |
| OLD | NEW |