diff options
author | halcanary <halcanary@google.com> | 2015-08-27 07:41:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-27 07:41:16 -0700 |
commit | 96fcdcc219d2a0d3579719b84b28bede76efba64 (patch) | |
tree | 0ec5ea0193d8292df8bf5ed9dd8498a5eb5763dd /gm/shallowgradient.cpp | |
parent | 435af2f736c85c3274a0c6760a3523810750d237 (diff) |
Style Change: NULL->nullptr
DOCS_PREVIEW= https://skia.org/?cl=1316233002
Review URL: https://codereview.chromium.org/1316233002
Diffstat (limited to 'gm/shallowgradient.cpp')
-rw-r--r-- | gm/shallowgradient.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gm/shallowgradient.cpp b/gm/shallowgradient.cpp index 276ec14f49..b2a34f3b4c 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 { |