Index: samplecode/SampleLayerMask.cpp |
diff --git a/samplecode/SampleLayerMask.cpp b/samplecode/SampleLayerMask.cpp |
index f5b88229ea3fa005f5e84345f6454362fe26ab9d..5fce85c4b7d7675181ff41aa101870ea269cc148 100644 |
--- a/samplecode/SampleLayerMask.cpp |
+++ b/samplecode/SampleLayerMask.cpp |
@@ -58,7 +58,7 @@ protected: |
virtual void onDrawContent(SkCanvas* canvas) { |
SkRect r; |
r.set(SkIntToScalar(20), SkIntToScalar(20), SkIntToScalar(120), SkIntToScalar(120)); |
- canvas->saveLayer(&r, NULL); |
+ canvas->saveLayer(&r, nullptr); |
canvas->drawColor(SK_ColorRED); |
drawMask(canvas, r); |
canvas->restore(); |