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

Unified Diff: gm/shallowgradient.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/shadertext2.cpp ('k') | gm/simpleaaclip.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/shallowgradient.cpp
diff --git a/gm/shallowgradient.cpp b/gm/shallowgradient.cpp
index 276ec14f49d2b397f602935ae3823b0596bee0c0..b2a34f3b4c6d670cd4ec745b690cb1394b9806ee 100644
--- a/gm/shallowgradient.cpp
+++ b/gm/shallowgradient.cpp
@@ -12,13 +12,13 @@ typedef SkShader* (*MakeShaderProc)(const SkColor[], int count, const SkSize&);
static SkShader* shader_linear(const SkColor colors[], int count, const SkSize& size) {
SkPoint pts[] = { { 0, 0 }, { size.width(), size.height() } };
- return SkGradientShader::CreateLinear(pts, colors, NULL, count,
+ return SkGradientShader::CreateLinear(pts, colors, nullptr, count,
SkShader::kClamp_TileMode);
}
static SkShader* shader_radial(const SkColor colors[], int count, const SkSize& size) {
SkPoint center = { size.width()/2, size.height()/2 };
- return SkGradientShader::CreateRadial(center, size.width()/2, colors, NULL, count,
+ return SkGradientShader::CreateRadial(center, size.width()/2, colors, nullptr, count,
SkShader::kClamp_TileMode);
}
@@ -26,13 +26,13 @@ static SkShader* shader_conical(const SkColor colors[], int count, const SkSize&
SkPoint center = { size.width()/2, size.height()/2 };
return SkGradientShader::CreateTwoPointConical(center, size.width()/64,
center, size.width()/2,
- colors, NULL, count,
+ colors, nullptr, count,
SkShader::kClamp_TileMode);
}
static SkShader* shader_sweep(const SkColor colors[], int count, const SkSize& size) {
return SkGradientShader::CreateSweep(size.width()/2, size.height()/2,
- colors, NULL, count);
+ colors, nullptr, count);
}
class ShallowGradientGM : public skiagm::GM {
« no previous file with comments | « gm/shadertext2.cpp ('k') | gm/simpleaaclip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698