Index: samplecode/SampleDither.cpp |
diff --git a/samplecode/SampleDither.cpp b/samplecode/SampleDither.cpp |
index c0ce2992a9bc84247e7b39eccb775f4a7154f5fe..8c14fb5110bfd409c6d5d045cc311df44bcfab91 100644 |
--- a/samplecode/SampleDither.cpp |
+++ b/samplecode/SampleDither.cpp |
@@ -35,7 +35,7 @@ static void draw_sweep(SkCanvas* c, int width, int height, SkScalar angle) { |
// SkColor colors[] = { SK_ColorRED, SK_ColorBLUE, SK_ColorGREEN, SK_ColorCYAN }; |
SkColor colors[] = { 0x4c737373, 0x4c737373, 0xffffd300 }; |
SkShader* s = SkGradientShader::CreateSweep(r.centerX(), r.centerY(), |
- colors, NULL, SK_ARRAY_COUNT(colors)); |
+ colors, nullptr, SK_ARRAY_COUNT(colors)); |
p.setShader(s)->unref(); |
SkAutoCanvasRestore acr(c, true); |
@@ -165,7 +165,7 @@ protected: |
draw_sweep(canvas, fBM.width()>>2, fBM.height()>>2, fAngle); |
fAngle += SK_Scalar1/2; |
- this->inval(NULL); |
+ this->inval(nullptr); |
} |
private: |