Index: src/animator/SkDrawGradient.cpp |
diff --git a/src/animator/SkDrawGradient.cpp b/src/animator/SkDrawGradient.cpp |
index 70e5e4493e0e5f3560bff5e56697e443b77f2c0d..4aecbc3936d862de09b4a9e52d9343b4f58baa91 100644 |
--- a/src/animator/SkDrawGradient.cpp |
+++ b/src/animator/SkDrawGradient.cpp |
@@ -127,7 +127,7 @@ void SkDrawLinearGradient::dump(SkAnimateMaker* maker) { |
SkShader* SkDrawLinearGradient::getShader() { |
if (addPrelude() == 0 || points.count() != 4) |
- return NULL; |
+ return nullptr; |
SkShader* shader = SkGradientShader::CreateLinear((SkPoint*)points.begin(), |
fColors.begin(), offsets.begin(), fColors.count(), (SkShader::TileMode) tileMode, |
0, getMatrix()); |
@@ -162,7 +162,7 @@ void SkDrawRadialGradient::dump(SkAnimateMaker* maker) { |
SkShader* SkDrawRadialGradient::getShader() { |
if (addPrelude() == 0) |
- return NULL; |
+ return nullptr; |
SkShader* shader = SkGradientShader::CreateRadial(center, |
radius, fColors.begin(), offsets.begin(), fColors.count(), (SkShader::TileMode) tileMode, |
0, getMatrix()); |