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/vertices.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/vertices.cpp')
-rw-r--r-- | gm/vertices.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gm/vertices.cpp b/gm/vertices.cpp index 9533d81bb4..40dd9496ef 100644 --- a/gm/vertices.cpp +++ b/gm/vertices.cpp @@ -17,7 +17,7 @@ static SkShader* make_shader(SkScalar w, SkScalar h) { }; const SkPoint pts[] = { { w/4, 0 }, { 3*w/4, h } }; - return SkGradientShader::CreateLinear(pts, colors, NULL, + return SkGradientShader::CreateLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), SkShader::kMirror_TileMode); } @@ -30,7 +30,7 @@ class VerticesGM : public skiagm::GM { unsigned fAlpha; public: - VerticesGM(unsigned alpha) : fShader(NULL), fAlpha(alpha) { + VerticesGM(unsigned alpha) : fShader(nullptr), fAlpha(alpha) { } virtual ~VerticesGM() { @@ -85,8 +85,8 @@ protected: const SkColor* fColors; const SkPoint* fTexs; } rec[] = { - { fColors, NULL }, - { NULL, fTexs }, + { fColors, nullptr }, + { nullptr, fTexs }, { fColors, fTexs }, }; |