Style Change: NULL->nullptr
DOCS_PREVIEW= https://skia.org/?cl=1316233002
Review URL: https://codereview.chromium.org/1316233002
diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp
index 2bb1582..dd56751 100644
--- a/src/effects/SkLightingImageFilter.cpp
+++ b/src/effects/SkLightingImageFilter.cpp
@@ -754,7 +754,7 @@
return new GrGLDistantLight;
#else
SkDEBUGFAIL("Should not call in GPU-less build");
- return NULL;
+ return nullptr;
#endif
}
bool requiresFragmentPosition() const override { return false; }
@@ -813,7 +813,7 @@
return new GrGLPointLight;
#else
SkDEBUGFAIL("Should not call in GPU-less build");
- return NULL;
+ return nullptr;
#endif
}
bool requiresFragmentPosition() const override { return true; }
@@ -927,7 +927,7 @@
return new GrGLSpotLight;
#else
SkDEBUGFAIL("Should not call in GPU-less build");
- return NULL;
+ return nullptr;
#endif
}
bool requiresFragmentPosition() const override { return true; }
@@ -1039,7 +1039,7 @@
default:
SkDEBUGFAIL("Unknown LightType.");
buffer.validate(false);
- return NULL;
+ return nullptr;
}
}
///////////////////////////////////////////////////////////////////////////////
@@ -1137,16 +1137,16 @@
SkScalar kd,
SkImageFilter* input,
const CropRect* cropRect) {
- if (NULL == light) {
- return NULL;
+ if (nullptr == light) {
+ return nullptr;
}
if (!SkScalarIsFinite(surfaceScale) || !SkScalarIsFinite(kd)) {
- return NULL;
+ return nullptr;
}
// According to the spec, kd can be any non-negative number :
// http://www.w3.org/TR/SVG/filters.html#feDiffuseLightingElement
if (kd < 0) {
- return NULL;
+ return nullptr;
}
return new SkDiffuseLightingImageFilter(light, surfaceScale, kd, input, cropRect);
}
@@ -1275,16 +1275,16 @@
SkScalar shininess,
SkImageFilter* input,
const CropRect* cropRect) {
- if (NULL == light) {
- return NULL;
+ if (nullptr == light) {
+ return nullptr;
}
if (!SkScalarIsFinite(surfaceScale) || !SkScalarIsFinite(ks) || !SkScalarIsFinite(shininess)) {
- return NULL;
+ return nullptr;
}
// According to the spec, ks can be any non-negative number :
// http://www.w3.org/TR/SVG/filters.html#feSpecularLightingElement
if (ks < 0) {
- return NULL;
+ return nullptr;
}
return new SkSpecularLightingImageFilter(light, surfaceScale, ks, shininess, input, cropRect);
}
@@ -1433,7 +1433,7 @@
}
default:
SkFAIL("Unexpected value.");
- return NULL;
+ return nullptr;
}
}