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 /tests/PictureShaderTest.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 'tests/PictureShaderTest.cpp')
-rw-r--r-- | tests/PictureShaderTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/PictureShaderTest.cpp b/tests/PictureShaderTest.cpp index 113f4f86ee..14bdcf2d81 100644 --- a/tests/PictureShaderTest.cpp +++ b/tests/PictureShaderTest.cpp @@ -11,7 +11,7 @@ #include "SkShader.h" #include "Test.h" -// Test that attempting to create a picture shader with a NULL picture or +// Test that attempting to create a picture shader with a nullptr picture or // empty picture returns a shader that draws nothing. DEF_TEST(PictureShader_empty, reporter) { SkPaint paint; @@ -23,7 +23,7 @@ DEF_TEST(PictureShader_empty, reporter) { canvas.clear(SK_ColorGREEN); SkShader* shader = SkShader::CreatePictureShader( - NULL, SkShader::kClamp_TileMode, SkShader::kClamp_TileMode, NULL, NULL); + nullptr, SkShader::kClamp_TileMode, SkShader::kClamp_TileMode, nullptr, nullptr); paint.setShader(shader)->unref(); canvas.drawRect(SkRect::MakeWH(1,1), paint); @@ -31,10 +31,10 @@ DEF_TEST(PictureShader_empty, reporter) { SkPictureRecorder factory; - factory.beginRecording(0, 0, NULL, 0); + factory.beginRecording(0, 0, nullptr, 0); SkAutoTUnref<SkPicture> picture(factory.endRecording()); shader = SkShader::CreatePictureShader( - picture.get(), SkShader::kClamp_TileMode, SkShader::kClamp_TileMode, NULL, NULL); + picture.get(), SkShader::kClamp_TileMode, SkShader::kClamp_TileMode, nullptr, nullptr); paint.setShader(shader)->unref(); canvas.drawRect(SkRect::MakeWH(1,1), paint); |