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

Unified Diff: gm/discard.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 | « gm/dftext.cpp ('k') | gm/displacement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/discard.cpp
diff --git a/gm/discard.cpp b/gm/discard.cpp
index 93da1ab52a5f3d3ff47384197dbfd32f46660bbd..85ef382ae77c6ca46cbac0fd22cf1e7d013ad040 100644
--- a/gm/discard.cpp
+++ b/gm/discard.cpp
@@ -37,7 +37,7 @@ protected:
void onDraw(SkCanvas* canvas) override {
GrContext* context = canvas->getGrContext();
- if (NULL == context) {
+ if (nullptr == context) {
return;
}
@@ -47,7 +47,7 @@ protected:
SkImageInfo info = SkImageInfo::MakeN32Premul(size);
SkSurface* surface = SkSurface::NewRenderTarget(context, SkSurface::kNo_Budgeted, info);
- if (NULL == surface) {
+ if (nullptr == surface) {
return;
}
@@ -73,7 +73,7 @@ protected:
surface->getCanvas()->drawPaint(paint);
break;
}
- surface->draw(canvas, 10.f*x, 10.f*y, NULL);
+ surface->draw(canvas, 10.f*x, 10.f*y, nullptr);
}
}
« no previous file with comments | « gm/dftext.cpp ('k') | gm/displacement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698