Index: src/gpu/glsl/GrGLSLCaps.cpp |
diff --git a/src/gpu/glsl/GrGLSLCaps.cpp b/src/gpu/glsl/GrGLSLCaps.cpp |
index c82d8333dff89a786a721429a7b30cb4da34e332..cf41f8e765e8e3bb1049711d6e6d76d50d9138a6 100755 |
--- a/src/gpu/glsl/GrGLSLCaps.cpp |
+++ b/src/gpu/glsl/GrGLSLCaps.cpp |
@@ -31,6 +31,9 @@ |
fFBFetchColorName = nullptr; |
fFBFetchExtensionString = nullptr; |
fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction; |
+ |
+ fMustSwizzleInShader = false; |
+ memset(fConfigSwizzle, 0, sizeof(fConfigSwizzle)); |
} |
SkString GrGLSLCaps::dump() const { |
@@ -64,5 +67,8 @@ |
} |
void GrGLSLCaps::onApplyOptionsOverrides(const GrContextOptions& options) { |
+ if (options.fUseShaderSwizzling) { |
+ fMustSwizzleInShader = true; |
+ } |
} |