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

Unified Diff: src/effects/SkLayerDrawLooper.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 | « src/effects/SkGpuBlurUtils.cpp ('k') | src/effects/SkLayerRasterizer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkLayerDrawLooper.cpp
diff --git a/src/effects/SkLayerDrawLooper.cpp b/src/effects/SkLayerDrawLooper.cpp
index 622088ff73b7d2efdf254af51a907f7982690223..b5f26a3811abde3dd05b93074dcf8070c62a8044 100644
--- a/src/effects/SkLayerDrawLooper.cpp
+++ b/src/effects/SkLayerDrawLooper.cpp
@@ -22,8 +22,8 @@ SkLayerDrawLooper::LayerInfo::LayerInfo() {
}
SkLayerDrawLooper::SkLayerDrawLooper()
- : fRecs(NULL),
- fTopRec(NULL),
+ : fRecs(nullptr),
+ fTopRec(nullptr),
fCount(0) {
}
@@ -134,7 +134,7 @@ SkLayerDrawLooper::LayerDrawLooperContext::LayerDrawLooperContext(
bool SkLayerDrawLooper::LayerDrawLooperContext::next(SkCanvas* canvas,
SkPaint* paint) {
canvas->restore();
- if (NULL == fCurrRec) {
+ if (nullptr == fCurrRec) {
return false;
}
@@ -167,7 +167,7 @@ bool SkLayerDrawLooper::asABlurShadow(BlurShadowRec* bsRec) const {
return false;
}
const SkMaskFilter* mf = rec->fPaint.getMaskFilter();
- if (NULL == mf) {
+ if (nullptr == mf) {
return false;
}
SkMaskFilter::BlurRec maskBlur;
@@ -293,8 +293,8 @@ void SkLayerDrawLooper::toString(SkString* str) const {
#endif
SkLayerDrawLooper::Builder::Builder()
- : fRecs(NULL),
- fTopRec(NULL),
+ : fRecs(nullptr),
+ fTopRec(nullptr),
fCount(0) {
}
@@ -314,7 +314,7 @@ SkPaint* SkLayerDrawLooper::Builder::addLayer(const LayerInfo& info) {
rec->fNext = fRecs;
rec->fInfo = info;
fRecs = rec;
- if (NULL == fTopRec) {
+ if (nullptr == fTopRec) {
fTopRec = rec;
}
@@ -332,9 +332,9 @@ SkPaint* SkLayerDrawLooper::Builder::addLayerOnTop(const LayerInfo& info) {
fCount += 1;
Rec* rec = new Rec;
- rec->fNext = NULL;
+ rec->fNext = nullptr;
rec->fInfo = info;
- if (NULL == fRecs) {
+ if (nullptr == fRecs) {
fRecs = rec;
} else {
SkASSERT(fTopRec);
@@ -351,8 +351,8 @@ SkLayerDrawLooper* SkLayerDrawLooper::Builder::detachLooper() {
looper->fRecs = fRecs;
fCount = 0;
- fRecs = NULL;
- fTopRec = NULL;
+ fRecs = nullptr;
+ fTopRec = nullptr;
return looper;
}
« no previous file with comments | « src/effects/SkGpuBlurUtils.cpp ('k') | src/effects/SkLayerRasterizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698