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

Unified Diff: bench/PatchBench.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 | « bench/MorphologyBench.cpp ('k') | bench/PatchGridBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/PatchBench.cpp
diff --git a/bench/PatchBench.cpp b/bench/PatchBench.cpp
index 097e68ec8ca021ade7cecc67be26bfd48ab9e68c..a6f5faae65f118afbd4108548bc31fc36d376371 100644
--- a/bench/PatchBench.cpp
+++ b/bench/PatchBench.cpp
@@ -76,7 +76,7 @@ public:
};
const SkPoint pts[] = { { 200.f / 4.f, 0.f }, { 3.f * 200.f / 4, 200.f } };
- return SkGradientShader::CreateLinear(pts, colors, NULL,
+ return SkGradientShader::CreateLinear(pts, colors, nullptr,
SK_ARRAY_COUNT(colors),
SkShader::kMirror_TileMode);
}
@@ -118,7 +118,7 @@ protected:
fPaint.setShader(this->createShader())->unref();
break;
default:
- fPaint.setShader(NULL);
+ fPaint.setShader(nullptr);
break;
}
}
@@ -128,16 +128,16 @@ protected:
for (int i = 0; i < loops; i++) {
switch (fVertexMode) {
case kNone_VertexMode:
- canvas->drawPatch(fCubics, NULL, NULL, NULL, fPaint);
+ canvas->drawPatch(fCubics, nullptr, nullptr, nullptr, fPaint);
break;
case kColors_VertexMode:
- canvas->drawPatch(fCubics, fColors, NULL, NULL, fPaint);
+ canvas->drawPatch(fCubics, fColors, nullptr, nullptr, fPaint);
break;
case kTexCoords_VertexMode:
- canvas->drawPatch(fCubics, NULL, fTexCoords, NULL, fPaint);
+ canvas->drawPatch(fCubics, nullptr, fTexCoords, nullptr, fPaint);
break;
case kBoth_VertexMode:
- canvas->drawPatch(fCubics, fColors, fTexCoords, NULL, fPaint);
+ canvas->drawPatch(fCubics, fColors, fTexCoords, nullptr, fPaint);
break;
default:
break;
« no previous file with comments | « bench/MorphologyBench.cpp ('k') | bench/PatchGridBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698