Index: gm/perlinnoise.cpp |
diff --git a/gm/perlinnoise.cpp b/gm/perlinnoise.cpp |
index 702e545c60268b5ef25bb31a80948bf1663cc995..e4c559801bf18716f2d57f2cb6bfdb19b5fe4f63 100644 |
--- a/gm/perlinnoise.cpp |
+++ b/gm/perlinnoise.cpp |
@@ -39,9 +39,9 @@ protected: |
SkISize tileSize = SkISize::Make(fSize.width() / 2, fSize.height() / 2); |
SkShader* shader = (type == SkPerlinNoiseShader::kFractalNoise_Type) ? |
SkPerlinNoiseShader::CreateFractalNoise(baseFrequencyX, baseFrequencyY, numOctaves, |
- seed, stitchTiles ? &tileSize : NULL) : |
+ seed, stitchTiles ? &tileSize : nullptr) : |
SkPerlinNoiseShader::CreateTurbulence(baseFrequencyX, baseFrequencyY, numOctaves, |
- seed, stitchTiles ? &tileSize : NULL); |
+ seed, stitchTiles ? &tileSize : nullptr); |
SkPaint paint; |
paint.setShader(shader)->unref(); |
if (stitchTiles) { |
@@ -112,9 +112,9 @@ protected: |
bool stitchTiles) { |
SkShader* shader = (type == SkPerlinNoiseShader::kFractalNoise_Type) ? |
SkPerlinNoiseShader::CreateFractalNoise(baseFrequencyX, baseFrequencyY, numOctaves, |
- seed, stitchTiles ? &fSize : NULL) : |
+ seed, stitchTiles ? &fSize : nullptr) : |
SkPerlinNoiseShader::CreateTurbulence(baseFrequencyX, baseFrequencyY, numOctaves, |
- seed, stitchTiles ? &fSize : NULL); |
+ seed, stitchTiles ? &fSize : nullptr); |
paint->setShader(shader)->unref(); |
} |