Style Change: NULL->nullptr
DOCS_PREVIEW= https://skia.org/?cl=1316233002
Review URL: https://codereview.chromium.org/1316233002
diff --git a/src/gpu/GrFontScaler.cpp b/src/gpu/GrFontScaler.cpp
index d923c7d..c841202 100644
--- a/src/gpu/GrFontScaler.cpp
+++ b/src/gpu/GrFontScaler.cpp
@@ -15,7 +15,7 @@
GrFontScaler::GrFontScaler(SkGlyphCache* strike) {
fStrike = strike;
- fKey = NULL;
+ fKey = nullptr;
}
GrFontScaler::~GrFontScaler() {
@@ -40,7 +40,7 @@
}
const GrFontDescKey* GrFontScaler::getKey() {
- if (NULL == fKey) {
+ if (nullptr == fKey) {
fKey = new GrFontDescKey(fStrike->getDescriptor());
}
return fKey;
@@ -117,7 +117,7 @@
SkASSERT(glyph.fWidth == width);
SkASSERT(glyph.fHeight == height);
const void* src = fStrike->findImage(glyph);
- if (NULL == src) {
+ if (nullptr == src) {
return false;
}
@@ -171,7 +171,7 @@
SkASSERT(glyph.fWidth + 2*SK_DistanceFieldPad == width);
SkASSERT(glyph.fHeight + 2*SK_DistanceFieldPad == height);
const void* image = fStrike->findImage(glyph);
- if (NULL == image) {
+ if (nullptr == image) {
return false;
}
// now generate the distance field