Index: gm/gradient_matrix.cpp |
diff --git a/gm/gradient_matrix.cpp b/gm/gradient_matrix.cpp |
index 10499ca9862e113d0ecb2756bf7160b32841f87c..77227599e666994dc212ff5c2b7ca8146e864474 100644 |
--- a/gm/gradient_matrix.cpp |
+++ b/gm/gradient_matrix.cpp |
@@ -62,7 +62,7 @@ static const SkScalar TESTGRID_Y = SkIntToScalar(200); |
static const int IMAGES_X = 4; // number of images per row |
static SkShader* make_linear_gradient(const SkPoint pts[2], const SkMatrix& localMatrix) { |
- return SkGradientShader::CreateLinear(pts, gColors, NULL, SK_ARRAY_COUNT(gColors), |
+ return SkGradientShader::CreateLinear(pts, gColors, nullptr, SK_ARRAY_COUNT(gColors), |
SkShader::kClamp_TileMode, 0, &localMatrix); |
} |
@@ -71,7 +71,7 @@ static SkShader* make_radial_gradient(const SkPoint pts[2], const SkMatrix& loca |
center.set(SkScalarAve(pts[0].fX, pts[1].fX), |
SkScalarAve(pts[0].fY, pts[1].fY)); |
float radius = (center - pts[0]).length(); |
- return SkGradientShader::CreateRadial(center, radius, gColors, NULL, SK_ARRAY_COUNT(gColors), |
+ return SkGradientShader::CreateRadial(center, radius, gColors, nullptr, SK_ARRAY_COUNT(gColors), |
SkShader::kClamp_TileMode, 0, &localMatrix); |
} |