Index: gm/drawminibitmaprect.cpp |
diff --git a/gm/drawminibitmaprect.cpp b/gm/drawminibitmaprect.cpp |
index 56f99082f41a859a4f67ba9f5f5ee74dba034bdf..85071c56c4a9b91f069e86c99718b53b9414b834 100644 |
--- a/gm/drawminibitmaprect.cpp |
+++ b/gm/drawminibitmaprect.cpp |
@@ -16,7 +16,7 @@ |
static SkImage* makebm(SkCanvas* caller, int w, int h) { |
SkImageInfo info = SkImageInfo::MakeN32Premul(w, h); |
SkAutoTUnref<SkSurface> surface(caller->newSurface(info)); |
- if (NULL == surface) { |
+ if (nullptr == surface) { |
surface.reset(SkSurface::NewRaster(info)); |
} |
SkCanvas* canvas = surface->getCanvas(); |
@@ -79,7 +79,7 @@ protected: |
SkISize onISize() override { return SkISize::Make(gSize, gSize); } |
void onDraw(SkCanvas* canvas) override { |
- if (NULL == fImage) { |
+ if (nullptr == fImage) { |
fImage.reset(makebm(canvas, gSurfaceSize, gSurfaceSize)); |
} |