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

Unified Diff: src/animator/SkDrawGradient.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/animator/SkDrawExtraPathEffect.cpp ('k') | src/animator/SkDrawGroup.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « src/animator/SkDrawExtraPathEffect.cpp ('k') | src/animator/SkDrawGroup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698