Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1717)

Unified Diff: tests/CTest.cpp

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/BlurTest.cpp ('k') | tests/CachedDataTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/CTest.cpp
diff --git a/tests/CTest.cpp b/tests/CTest.cpp
index 4cc8cd666668aef1ea544e982540564141947d0a..f6ff4f0551a9f020ec1f492ddd54f0d65c66a113 100644
--- a/tests/CTest.cpp
+++ b/tests/CTest.cpp
@@ -16,7 +16,7 @@
static void shader_test(skiatest::Reporter* reporter) {
sk_imageinfo_t info =
{64, 64, sk_colortype_get_default_8888(), PREMUL_SK_ALPHATYPE};
- sk_surface_t* surface = sk_surface_new_raster(&info, NULL);
+ sk_surface_t* surface = sk_surface_new_raster(&info, nullptr);
sk_canvas_t* canvas = sk_surface_get_canvas(surface);
sk_paint_t* paint = sk_paint_new();
@@ -30,21 +30,21 @@ static void shader_test(skiatest::Reporter* reporter) {
sk_shader_t* shader;
shader = sk_shader_new_radial_gradient(
- &point, 1.0f, colors, NULL, 2, tilemode, NULL);
- REPORTER_ASSERT(reporter, shader != NULL);
+ &point, 1.0f, colors, nullptr, 2, tilemode, nullptr);
+ REPORTER_ASSERT(reporter, shader != nullptr);
sk_paint_set_shader(paint, shader);
sk_shader_unref(shader);
sk_canvas_draw_paint(canvas, paint);
- shader = sk_shader_new_sweep_gradient(&point, colors, NULL, 2, NULL);
- REPORTER_ASSERT(reporter, shader != NULL);
+ shader = sk_shader_new_sweep_gradient(&point, colors, nullptr, 2, nullptr);
+ REPORTER_ASSERT(reporter, shader != nullptr);
sk_paint_set_shader(paint, shader);
sk_shader_unref(shader);
sk_canvas_draw_paint(canvas, paint);
shader = sk_shader_new_two_point_conical_gradient(
- &point, 10.0f, &point2, 50.0f, colors, NULL, 2, tilemode, NULL);
- REPORTER_ASSERT(reporter, shader != NULL);
+ &point, 10.0f, &point2, 50.0f, colors, nullptr, 2, tilemode, nullptr);
+ REPORTER_ASSERT(reporter, shader != nullptr);
sk_paint_set_shader(paint, shader);
sk_shader_unref(shader);
sk_canvas_draw_paint(canvas, paint);
« no previous file with comments | « tests/BlurTest.cpp ('k') | tests/CachedDataTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698