Index: src/gpu/glsl/GrGLSLCaps.cpp |
diff --git a/src/gpu/glsl/GrGLSLCaps.cpp b/src/gpu/glsl/GrGLSLCaps.cpp |
index c82d8333dff89a786a721429a7b30cb4da34e332..ba99be57e26ddb44b30a3728ee5ef1dda417c6ca 100755 |
--- a/src/gpu/glsl/GrGLSLCaps.cpp |
+++ b/src/gpu/glsl/GrGLSLCaps.cpp |
@@ -23,11 +23,14 @@ GrGLSLCaps::GrGLSLCaps(const GrContextOptions& options) { |
fCanUseAnyFunctionInShader = true; |
fCanUseMinAndAbsTogether = true; |
fMustForceNegatedAtanParamToFloat = false; |
+ fFlatInterpolationSupport = false; |
+ fNoPerspectiveInterpolationSupport = false; |
fVersionDeclString = nullptr; |
fShaderDerivativeExtensionString = nullptr; |
fFragCoordConventionsExtensionString = nullptr; |
fSecondaryOutputExtensionString = nullptr; |
fExternalTextureExtensionString = nullptr; |
+ fNoPerspectiveInterpolationExtensionString = nullptr; |
fFBFetchColorName = nullptr; |
fFBFetchExtensionString = nullptr; |
fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction; |
@@ -58,6 +61,9 @@ SkString GrGLSLCaps::dump() const { |
r.appendf("Can use min() and abs() together: %s\n", (fCanUseMinAndAbsTogether ? "YES" : "NO")); |
r.appendf("Must force negated atan param to float: %s\n", (fMustForceNegatedAtanParamToFloat ? |
"YES" : "NO")); |
+ r.appendf("Flat interpolation support: %s\n", (fFlatInterpolationSupport ? "YES" : "NO")); |
+ r.appendf("No perspective interpolation support: %s\n", (fNoPerspectiveInterpolationSupport ? |
+ "YES" : "NO")); |
r.appendf("Advanced blend equation interaction: %s\n", |
kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]); |
return r; |