aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-05-30 15:22:54 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-30 20:15:37 +0000
commitf2ae2b2dbcbdcc31b72fa86ed79f1cc02220528d (patch)
treed484828e09e49377f660fa6dddb1283fe7989ccf /samplecode
parent25e90055a0972888fee98ab3a50cc21044d80a23 (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 'samplecode')
-rw-r--r--samplecode/PerlinPatch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/PerlinPatch.cpp b/samplecode/PerlinPatch.cpp
index 3f04973b3b..59337c5e1d 100644
--- a/samplecode/PerlinPatch.cpp
+++ b/samplecode/PerlinPatch.cpp
@@ -10,7 +10,7 @@
#include "SkCanvas.h"
#include "SkGradientShader.h"
#include "SkPatchUtils.h"
-#include "SkPerlinNoiseShader2/SkPerlinNoiseShader2.h"
+#include "SkPerlinNoiseShader.h"
static void draw_control_points(SkCanvas* canvas, const SkPoint cubics[12]) {
//draw control points
@@ -149,7 +149,7 @@ protected:
;
SkScalar scaleFreq = 2.0;
- fShader1 = SkPerlinNoiseShader2::MakeImprovedNoise(fXFreq/scaleFreq, fYFreq/scaleFreq, 4,
+ fShader1 = SkPerlinNoiseShader::MakeImprovedNoise(fXFreq/scaleFreq, fYFreq/scaleFreq, 4,
fSeed);
fShaderCompose = SkShader::MakeComposeShader(fShader0, fShader1, SkBlendMode::kSrcOver);