| 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 | 8 |
| 9 #include "GrGLSLCaps.h" | 9 #include "GrGLSLCaps.h" |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 fBindlessTextureSupport = false; | 21 fBindlessTextureSupport = false; |
| 22 fUsesPrecisionModifiers = false; | 22 fUsesPrecisionModifiers = false; |
| 23 fCanUseAnyFunctionInShader = true; | 23 fCanUseAnyFunctionInShader = true; |
| 24 fForceHighPrecisionNDSTransform = false; | 24 fForceHighPrecisionNDSTransform = false; |
| 25 fCanUseMinAndAbsTogether = true; | 25 fCanUseMinAndAbsTogether = true; |
| 26 fMustForceNegatedAtanParamToFloat = false; | 26 fMustForceNegatedAtanParamToFloat = false; |
| 27 fVersionDeclString = nullptr; | 27 fVersionDeclString = nullptr; |
| 28 fShaderDerivativeExtensionString = nullptr; | 28 fShaderDerivativeExtensionString = nullptr; |
| 29 fFragCoordConventionsExtensionString = nullptr; | 29 fFragCoordConventionsExtensionString = nullptr; |
| 30 fSecondaryOutputExtensionString = nullptr; | 30 fSecondaryOutputExtensionString = nullptr; |
| 31 fExternalTextureExtensionString = nullptr; |
| 31 fFBFetchColorName = nullptr; | 32 fFBFetchColorName = nullptr; |
| 32 fFBFetchExtensionString = nullptr; | 33 fFBFetchExtensionString = nullptr; |
| 33 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction; | 34 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction; |
| 34 | 35 |
| 35 fMustSwizzleInShader = false; | 36 fMustSwizzleInShader = false; |
| 36 memset(fConfigSwizzle, 0, sizeof(fConfigSwizzle)); | 37 memset(fConfigSwizzle, 0, sizeof(fConfigSwizzle)); |
| 37 } | 38 } |
| 38 | 39 |
| 39 SkString GrGLSLCaps::dump() const { | 40 SkString GrGLSLCaps::dump() const { |
| 40 SkString r = INHERITED::dump(); | 41 SkString r = INHERITED::dump(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 67 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]); | 68 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]); |
| 68 return r; | 69 return r; |
| 69 } | 70 } |
| 70 | 71 |
| 71 void GrGLSLCaps::onApplyOptionsOverrides(const GrContextOptions& options) { | 72 void GrGLSLCaps::onApplyOptionsOverrides(const GrContextOptions& options) { |
| 72 if (options.fUseShaderSwizzling) { | 73 if (options.fUseShaderSwizzling) { |
| 73 fMustSwizzleInShader = true; | 74 fMustSwizzleInShader = true; |
| 74 } | 75 } |
| 75 } | 76 } |
| 76 | 77 |
| OLD | NEW |