Index: gm/gradtext.cpp |
diff --git a/gm/gradtext.cpp b/gm/gradtext.cpp |
index b576ede6442e3ab7b0501cd76b92c57dc2b8f284..acb88d6e52a3676e192eaf37ddbe49c3e2b7a8de 100644 |
--- a/gm/gradtext.cpp |
+++ b/gm/gradtext.cpp |
@@ -14,7 +14,7 @@ |
static SkShader* make_grad(SkScalar width) { |
SkColor colors[] = { SK_ColorRED, 0x0000FF00, SK_ColorBLUE }; |
SkPoint pts[] = { { 0, 0 }, { width, 0 } }; |
- return SkGradientShader::CreateLinear(pts, colors, NULL, |
+ return SkGradientShader::CreateLinear(pts, colors, nullptr, |
SK_ARRAY_COUNT(colors), |
SkShader::kMirror_TileMode); |
} |
@@ -23,7 +23,7 @@ static SkShader* make_grad(SkScalar width) { |
static SkShader* make_grad2(SkScalar width) { |
SkColor colors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE }; |
SkPoint pts[] = { { 0, 0 }, { width, 0 } }; |
- return SkGradientShader::CreateLinear(pts, colors, NULL, |
+ return SkGradientShader::CreateLinear(pts, colors, nullptr, |
SK_ARRAY_COUNT(colors), |
SkShader::kMirror_TileMode); |
} |
@@ -31,7 +31,7 @@ static SkShader* make_grad2(SkScalar width) { |
static SkShader* make_chrome_solid() { |
SkColor colors[] = { SK_ColorGREEN, SK_ColorGREEN }; |
SkPoint pts[] = { { 0, 0 }, { 1, 0 } }; |
- return SkGradientShader::CreateLinear(pts, colors, NULL, 2, |
+ return SkGradientShader::CreateLinear(pts, colors, nullptr, 2, |
SkShader::kClamp_TileMode); |
} |