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

Unified Diff: gm/patch.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 | « gm/ovals.cpp ('k') | gm/patchgrid.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/patch.cpp
diff --git a/gm/patch.cpp b/gm/patch.cpp
index df3a84e53453f982e719a7a4015a8cfc47b5b5db..c3e43004a62f95cd228f1a6e9f235834bd93e5b0 100644
--- a/gm/patch.cpp
+++ b/gm/patch.cpp
@@ -17,7 +17,7 @@ static SkShader* make_shader() {
};
const SkPoint pts[] = { { 100.f / 4.f, 0.f }, { 3.f * 100.f / 4.f, 100.f } };
- return SkGradientShader::CreateLinear(pts, colors, NULL, SK_ARRAY_COUNT(colors),
+ return SkGradientShader::CreateLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors),
SkShader::kMirror_TileMode);
}
@@ -124,20 +124,20 @@ protected:
canvas->translate(x * 350.0f, y * 350.0f);
switch (x) {
case 0:
- canvas->drawPatch(cubics, NULL, NULL, xfer, paint);
+ canvas->drawPatch(cubics, nullptr, nullptr, xfer, paint);
break;
case 1:
- canvas->drawPatch(cubics, colors, NULL, xfer, paint);
+ canvas->drawPatch(cubics, colors, nullptr, xfer, paint);
break;
case 2:
paint.setShader(shader);
- canvas->drawPatch(cubics, NULL, texCoords, xfer, paint);
- paint.setShader(NULL);
+ canvas->drawPatch(cubics, nullptr, texCoords, xfer, paint);
+ paint.setShader(nullptr);
break;
case 3:
paint.setShader(shader);
canvas->drawPatch(cubics, colors, texCoords, xfer, paint);
- paint.setShader(NULL);
+ paint.setShader(nullptr);
break;
default:
break;
« no previous file with comments | « gm/ovals.cpp ('k') | gm/patchgrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698