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; | |
32 fFBFetchColorName = nullptr; | 31 fFBFetchColorName = nullptr; |
33 fFBFetchExtensionString = nullptr; | 32 fFBFetchExtensionString = nullptr; |
34 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction; | 33 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction; |
35 | 34 |
36 fMustSwizzleInShader = false; | 35 fMustSwizzleInShader = false; |
37 memset(fConfigSwizzle, 0, sizeof(fConfigSwizzle)); | 36 memset(fConfigSwizzle, 0, sizeof(fConfigSwizzle)); |
38 } | 37 } |
39 | 38 |
40 SkString GrGLSLCaps::dump() const { | 39 SkString GrGLSLCaps::dump() const { |
41 SkString r = INHERITED::dump(); | 40 SkString r = INHERITED::dump(); |
(...skipping 26 matching lines...) Expand all Loading... |
68 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]); | 67 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]); |
69 return r; | 68 return r; |
70 } | 69 } |
71 | 70 |
72 void GrGLSLCaps::onApplyOptionsOverrides(const GrContextOptions& options) { | 71 void GrGLSLCaps::onApplyOptionsOverrides(const GrContextOptions& options) { |
73 if (options.fUseShaderSwizzling) { | 72 if (options.fUseShaderSwizzling) { |
74 fMustSwizzleInShader = true; | 73 fMustSwizzleInShader = true; |
75 } | 74 } |
76 } | 75 } |
77 | 76 |
OLD | NEW |