Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(658)

Unified Diff: src/effects/gradients/SkLinearGradient.cpp

Issue 7095056: fix all the false --> NULL issues in the gradient code (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/effects/gradients/SkRadialGradient.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/gradients/SkLinearGradient.cpp
diff --git a/src/effects/gradients/SkLinearGradient.cpp b/src/effects/gradients/SkLinearGradient.cpp
index 8ae764607a0072ccc4b3b192d7a16b16ec1dcda5..fc5653b6fdce9cdf80528244c9a365900353c45a 100644
--- a/src/effects/gradients/SkLinearGradient.cpp
+++ b/src/effects/gradients/SkLinearGradient.cpp
@@ -550,7 +550,7 @@ GrEffect* SkLinearGradient::asNewEffect(GrContext* context, const SkPaint&) cons
SkASSERT(NULL != context);
SkMatrix matrix;
if (!this->getLocalMatrix().invert(&matrix)) {
- return false;
+ return NULL;
}
matrix.postConcat(fPtsToUnit);
return SkNEW_ARGS(GrLinearGradient, (context, *this, matrix, fTileMode));
« no previous file with comments | « no previous file | src/effects/gradients/SkRadialGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b