From 96fcdcc219d2a0d3579719b84b28bede76efba64 Mon Sep 17 00:00:00 2001 From: halcanary Date: Thu, 27 Aug 2015 07:41:13 -0700 Subject: Style Change: NULL->nullptr DOCS_PREVIEW= https://skia.org/?cl=1316233002 Review URL: https://codereview.chromium.org/1316233002 --- bench/GradientBench.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bench/GradientBench.cpp') diff --git a/bench/GradientBench.cpp b/bench/GradientBench.cpp index 21b73708d1..705099db1c 100644 --- a/bench/GradientBench.cpp +++ b/bench/GradientBench.cpp @@ -39,10 +39,10 @@ static const SkColor gShallowColors[] = { 0xFF555555, 0xFF444444 }; // We have several special-cases depending on the number (and spacing) of colors, so // try to exercise those here. static const GradData gGradData[] = { - { 2, gColors, NULL, "" }, - { 50, gColors, NULL, "_hicolor" }, // many color gradient - { 3, gColors, NULL, "_3color" }, - { 2, gShallowColors, NULL, "_shallow" }, + { 2, gColors, nullptr, "" }, + { 50, gColors, nullptr, "_hicolor" }, // many color gradient + { 3, gColors, nullptr, "_3color" }, + { 2, gShallowColors, nullptr, "_shallow" }, }; /// Ignores scale @@ -354,7 +354,7 @@ protected: SK_ColorBLACK, SkColorSetARGB(alpha, gray, gray, gray), SK_ColorWHITE }; - SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, + SkShader* s = SkGradientShader::CreateLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode); paint.setShader(s)->unref(); -- cgit v1.2.3