Index: gm/shallowgradient.cpp |
diff --git a/gm/shallowgradient.cpp b/gm/shallowgradient.cpp |
index 276ec14f49d2b397f602935ae3823b0596bee0c0..b2a34f3b4c6d670cd4ec745b690cb1394b9806ee 100644 |
--- a/gm/shallowgradient.cpp |
+++ b/gm/shallowgradient.cpp |
@@ -12,13 +12,13 @@ typedef SkShader* (*MakeShaderProc)(const SkColor[], int count, const SkSize&); |
static SkShader* shader_linear(const SkColor colors[], int count, const SkSize& size) { |
SkPoint pts[] = { { 0, 0 }, { size.width(), size.height() } }; |
- return SkGradientShader::CreateLinear(pts, colors, NULL, count, |
+ return SkGradientShader::CreateLinear(pts, colors, nullptr, count, |
SkShader::kClamp_TileMode); |
} |
static SkShader* shader_radial(const SkColor colors[], int count, const SkSize& size) { |
SkPoint center = { size.width()/2, size.height()/2 }; |
- return SkGradientShader::CreateRadial(center, size.width()/2, colors, NULL, count, |
+ return SkGradientShader::CreateRadial(center, size.width()/2, colors, nullptr, count, |
SkShader::kClamp_TileMode); |
} |
@@ -26,13 +26,13 @@ static SkShader* shader_conical(const SkColor colors[], int count, const SkSize& |
SkPoint center = { size.width()/2, size.height()/2 }; |
return SkGradientShader::CreateTwoPointConical(center, size.width()/64, |
center, size.width()/2, |
- colors, NULL, count, |
+ colors, nullptr, count, |
SkShader::kClamp_TileMode); |
} |
static SkShader* shader_sweep(const SkColor colors[], int count, const SkSize& size) { |
return SkGradientShader::CreateSweep(size.width()/2, size.height()/2, |
- colors, NULL, count); |
+ colors, nullptr, count); |
} |
class ShallowGradientGM : public skiagm::GM { |