Index: tools/bench_pictures_main.cpp |
diff --git a/tools/bench_pictures_main.cpp b/tools/bench_pictures_main.cpp |
index 865bb5184fb307d1f6c0379b6c3a35981ddc4ba8..79cce56dca11e90fd44aeced22517451880e116c 100644 |
--- a/tools/bench_pictures_main.cpp |
+++ b/tools/bench_pictures_main.cpp |
@@ -195,7 +195,7 @@ static bool run_single_benchmark(const SkString& inputPath, |
} |
SkAutoTUnref<SkPicture> picture(SkPicture::CreateFromStream(&inputStream, proc)); |
- if (NULL == picture.get()) { |
+ if (nullptr == picture.get()) { |
SkString err; |
err.printf("Could not read an SkPicture from %s\n", inputPath.c_str()); |
gLogger.logError(err); |
@@ -337,13 +337,13 @@ static void setup_benchmark(sk_tools::PictureBenchmark* benchmark) { |
gLogger.logError(errorString); |
} |
- if (NULL == renderer.get()) { |
+ if (nullptr == renderer.get()) { |
exit(-1); |
} |
if (FLAGS_timeIndividualTiles) { |
sk_tools::TiledPictureRenderer* tiledRenderer = renderer->getTiledRenderer(); |
- if (NULL == tiledRenderer) { |
+ if (nullptr == tiledRenderer) { |
gLogger.logError("--timeIndividualTiles requires tiled rendering.\n"); |
exit(-1); |
} |