Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Unified Diff: src/effects/SkPerlinNoiseShader.cpp

Issue 656503002: Move willUseInputColor check to computeInvariantOutput (Closed) Base URL: https://skia.googlesource.com/skia.git@addMultFlag
Patch Set: Update InvariantOutput validate Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/effects/SkPerlinNoiseShader.cpp
diff --git a/src/effects/SkPerlinNoiseShader.cpp b/src/effects/SkPerlinNoiseShader.cpp
index 9254ff59c89b8a01314cb3e2144aba8ffabba65c..9de9e933b59560870c8c71000c75b6116553db38 100644
--- a/src/effects/SkPerlinNoiseShader.cpp
+++ b/src/effects/SkPerlinNoiseShader.cpp
@@ -588,6 +588,7 @@ private:
void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE {
inout->setToUnknown();
+ inout->setWillNotUseInputColor();
}
GrPerlinNoiseEffect(SkPerlinNoiseShader::Type type,
@@ -606,7 +607,6 @@ private:
this->addTextureAccess(&fNoiseAccess);
fCoordTransform.reset(kLocal_GrCoordSet, matrix);
this->addCoordTransform(&fCoordTransform);
- this->setWillNotUseInputColor();
}
GR_DECLARE_FRAGMENT_PROCESSOR_TEST;

Powered by Google App Engine
This is Rietveld 408576698