diff options
author | 2017-05-30 15:22:54 -0400 | |
---|---|---|
committer | 2017-05-30 20:15:37 +0000 | |
commit | f2ae2b2dbcbdcc31b72fa86ed79f1cc02220528d (patch) | |
tree | d484828e09e49377f660fa6dddb1283fe7989ccf /include | |
parent | 25e90055a0972888fee98ab3a50cc21044d80a23 (diff) |
move perlinenoise2 into effects
Bug: skia:
Change-Id: I5c178bdc5901d15c6924b3fb1f29119ab3cc701d
Reviewed-on: https://skia-review.googlesource.com/18131
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/effects/SkPerlinNoiseShader.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/effects/SkPerlinNoiseShader.h b/include/effects/SkPerlinNoiseShader.h index 6c2d7ff5cf..5bf3847ae3 100644 --- a/include/effects/SkPerlinNoiseShader.h +++ b/include/effects/SkPerlinNoiseShader.h @@ -10,9 +10,6 @@ #include "SkShader.h" -struct SkISize; -class SkShader; - /** \class SkPerlinNoiseShader SkPerlinNoiseShader creates an image using the Perlin turbulence function. @@ -47,6 +44,12 @@ public: static sk_sp<SkShader> MakeTurbulence(SkScalar baseFrequencyX, SkScalar baseFrequencyY, int numOctaves, SkScalar seed, const SkISize* tileSize = nullptr); + /** + * Creates an Improved Perlin Noise shader. The z value is roughly equivalent to the seed of the + * other two types, but minor variations to z will only slightly change the noise. + */ + static sk_sp<SkShader> MakeImprovedNoise(SkScalar baseFrequencyX, SkScalar baseFrequencyY, + int numOctaves, SkScalar z); SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() |