Index: gm/alphagradients.cpp |
diff --git a/gm/alphagradients.cpp b/gm/alphagradients.cpp |
index b209cec9d1c56bbd4293c24a3f96abcac14f2762..71ec27c975096031d461a50f9de4d3aba8985658 100644 |
--- a/gm/alphagradients.cpp |
+++ b/gm/alphagradients.cpp |
@@ -28,12 +28,12 @@ protected: |
SkPoint pts[] = { { r.fLeft, r.fTop }, { r.fRight, r.fBottom } }; |
SkPaint paint; |
uint32_t flags = doPreMul ? SkGradientShader::kInterpolateColorsInPremul_Flag : 0; |
- SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, 2, |
- SkShader::kClamp_TileMode, flags, NULL); |
+ SkShader* s = SkGradientShader::CreateLinear(pts, colors, nullptr, 2, |
+ SkShader::kClamp_TileMode, flags, nullptr); |
paint.setShader(s)->unref(); |
canvas->drawRect(r, paint); |
- paint.setShader(NULL); |
+ paint.setShader(nullptr); |
paint.setStyle(SkPaint::kStroke_Style); |
canvas->drawRect(r, paint); |
} |