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

Unified Diff: gm/alphagradients.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/all_bitmap_configs.cpp ('k') | gm/arithmode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « gm/all_bitmap_configs.cpp ('k') | gm/arithmode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698