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

Unified Diff: gm/drawfilter.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/drawbitmaprect.cpp ('k') | gm/drawlooper.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/drawfilter.cpp
diff --git a/gm/drawfilter.cpp b/gm/drawfilter.cpp
index 8c29f07b0268e8a2d34f6f9c34f097e952ca1806..b0a21e9a117b5dd0c3921de87295a247097cc5d2 100644
--- a/gm/drawfilter.cpp
+++ b/gm/drawfilter.cpp
@@ -24,7 +24,7 @@ class TestFilter : public SkDrawFilter {
public:
bool filter(SkPaint* p, Type) override {
p->setColor(SK_ColorRED);
- p->setMaskFilter(NULL);
+ p->setMaskFilter(nullptr);
return true;
}
};
@@ -53,7 +53,7 @@ protected:
p.setColor(SK_ColorBLUE);
p.setMaskFilter(fBlur.get());
SkRect r = { 20, 20, 100, 100 };
- canvas->setDrawFilter(NULL);
+ canvas->setDrawFilter(nullptr);
canvas->drawRect(r, p);
TestFilter redNoBlur;
canvas->setDrawFilter(&redNoBlur);
@@ -61,7 +61,7 @@ protected:
canvas->drawRect(r, p);
// Must unset if the DrawFilter is from the stack to avoid refcount errors!
- canvas->setDrawFilter(NULL);
+ canvas->setDrawFilter(nullptr);
}
private:
« no previous file with comments | « gm/drawbitmaprect.cpp ('k') | gm/drawlooper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698