Style Change: NULL->nullptr
DOCS_PREVIEW= https://skia.org/?cl=1316233002
Review URL: https://codereview.chromium.org/1316233002
diff --git a/samplecode/SamplePatch.cpp b/samplecode/SamplePatch.cpp
index 9ada9ef..dc3e9df 100644
--- a/samplecode/SamplePatch.cpp
+++ b/samplecode/SamplePatch.cpp
@@ -42,7 +42,7 @@
SkPoint pts[] = { { 0, 0, },
{ SkIntToScalar(size.fX), SkIntToScalar(size.fY) } };
SkColor colors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE, SK_ColorRED };
- return SkGradientShader::CreateLinear(pts, colors, NULL,
+ return SkGradientShader::CreateLinear(pts, colors, nullptr,
SK_ARRAY_COUNT(colors), SkShader::kMirror_TileMode);
}
@@ -74,7 +74,7 @@
samples[0] = cubic[0];
for (int i = 1; i < segs; i++) {
t += dt;
- SkEvalCubicAt(cubic, t, &samples[i], NULL, NULL);
+ SkEvalCubicAt(cubic, t, &samples[i], nullptr, nullptr);
}
}
@@ -199,9 +199,9 @@
}
t += dt;
canvas->drawVertices(SkCanvas::kTriangleStrip_VertexMode, stripCount,
- strip, doTextures ? tex : NULL,
- doColors ? colors : NULL, NULL,
- NULL, 0, paint);
+ strip, doTextures ? tex : nullptr,
+ doColors ? colors : nullptr, nullptr,
+ nullptr, 0, paint);
}
}
@@ -294,7 +294,7 @@
patch.setPatch(fPts);
drawpatches(canvas, paint, nu, nv, &patch);
- paint.setShader(NULL);
+ paint.setShader(nullptr);
paint.setAntiAlias(true);
paint.setStrokeWidth(SkIntToScalar(5));
canvas->drawPoints(SkCanvas::kPoints_PointMode, SK_ARRAY_COUNT(fPts), fPts, paint);
@@ -347,7 +347,7 @@
bool onClick(Click* click) override {
fPts[((PtClick*)click)->fIndex].set(click->fCurr.fX - DX, click->fCurr.fY - DY);
- this->inval(NULL);
+ this->inval(nullptr);
return true;
}