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

Unified Diff: src/effects/SkPerlinNoiseShader.cpp

Issue 643743003: Create helper functions to use in computeInvariantOutput calls (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fixes 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 e9f6c60da8eac52c2c8d5206b73a49279eadf218..3301886d452029893066c2261df60f5c1ce01484 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->unknownOutput();
bsalomon 2014/10/10 19:48:16 does this generate a random alpha?
egdaniel 2014/10/13 16:44:57 It produces a random alpha and returns a vec4 colo
}
GrPerlinNoiseEffect(SkPerlinNoiseShader::Type type,

Powered by Google App Engine
This is Rietveld 408576698