Index: src/effects/SkPerlinNoiseShader.cpp |
diff --git a/src/effects/SkPerlinNoiseShader.cpp b/src/effects/SkPerlinNoiseShader.cpp |
index e9f6c60da8eac52c2c8d5206b73a49279eadf218..9254ff59c89b8a01314cb3e2144aba8ffabba65c 100644 |
--- a/src/effects/SkPerlinNoiseShader.cpp |
+++ b/src/effects/SkPerlinNoiseShader.cpp |
@@ -587,8 +587,7 @@ private: |
} |
void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE { |
- inout->fValidFlags = 0; // This is noise. Nothing is constant. |
- inout->fIsSingleComponent = false; |
+ inout->setToUnknown(); |
} |
GrPerlinNoiseEffect(SkPerlinNoiseShader::Type type, |