Index: gm/transparency.cpp |
diff --git a/gm/transparency.cpp b/gm/transparency.cpp |
index 62c277a691c7fedef6c2ebc29206e71571229846..73bd8b20235f3add7320fdfd8575bb267d89d8be 100644 |
--- a/gm/transparency.cpp |
+++ b/gm/transparency.cpp |
@@ -32,7 +32,7 @@ static void make_transparency(SkCanvas* canvas, |
shaderColors[0] = SK_AlphaTRANSPARENT; |
shaderColors[1] = kColors[i]; |
SkAutoTUnref<SkShader> shader(SkGradientShader::CreateLinear( |
- pts, shaderColors, NULL, 2, SkShader::kClamp_TileMode)); |
+ pts, shaderColors, nullptr, 2, SkShader::kClamp_TileMode)); |
SkRect r = SkRect::MakeXYWH(0, i * kRowHeight, width, kRowHeight); |
SkPaint p; |
p.setShader(shader); |
@@ -70,6 +70,6 @@ DEF_SIMPLE_GM(transparency_check, canvas, 1792, 1080) { |
SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(256, 9)); |
make_transparency(surface->getCanvas(), 256.0f, 9.0f); |
canvas->scale(7.0f, 120.0f); |
- surface->draw(canvas, 0, 0, NULL); |
+ surface->draw(canvas, 0, 0, nullptr); |
} |
} |