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

Unified Diff: samplecode/SampleDitherBitmap.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 | « samplecode/SampleDither.cpp ('k') | samplecode/SampleDraw.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleDitherBitmap.cpp
diff --git a/samplecode/SampleDitherBitmap.cpp b/samplecode/SampleDitherBitmap.cpp
index 9af5ce576f761d1e1e49db493ac53e398a9a6508..df72dd4ffea6ba21e50fdd0daf05ef853c293f12 100644
--- a/samplecode/SampleDitherBitmap.cpp
+++ b/samplecode/SampleDitherBitmap.cpp
@@ -17,7 +17,7 @@ static void draw_rect(SkCanvas* canvas, const SkRect& r, const SkPaint& p) {
canvas->drawRect(r, p);
SkPaint frame(p);
- frame.setShader(NULL);
+ frame.setShader(nullptr);
frame.setStyle(SkPaint::kStroke_Style);
canvas->drawRect(r, frame);
}
@@ -26,7 +26,7 @@ static void draw_gradient(SkCanvas* canvas) {
SkRect r = { 0, 0, SkIntToScalar(256), SkIntToScalar(32) };
SkPoint pts[] = { { r.fLeft, r.fTop }, { r.fRight, r.fTop } };
SkColor colors[] = { 0xFF000000, 0xFFFF0000 };
- SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, 2,
+ SkShader* s = SkGradientShader::CreateLinear(pts, colors, nullptr, 2,
SkShader::kClamp_TileMode);
SkPaint p;
@@ -62,7 +62,7 @@ static SkBitmap make_bitmap() {
SkBitmap bm;
bm.allocPixels(SkImageInfo::Make(256, 32, kIndex_8_SkColorType, kPremul_SkAlphaType),
- NULL, ctable);
+ nullptr, ctable);
ctable->unref();
bm.lockPixels();
« no previous file with comments | « samplecode/SampleDither.cpp ('k') | samplecode/SampleDraw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698