Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Unified Diff: gm/transparency.cpp

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/tinybitmap.cpp ('k') | gm/typeface.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « gm/tinybitmap.cpp ('k') | gm/typeface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698