commit | 84831acfad480349ae22a46c754e19287b818f54 | [log] [tgz] |
---|---|---|
author | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Jan 14 22:09:54 2013 +0000 |
committer | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Jan 14 22:09:54 2013 +0000 |
tree | 8b1a1ebc1c012e840003fd1e33bd73d1288c8737 | |
parent | d386b0eb03b75e302906f2251bbb0aa28ce41a97 [diff] [blame] |
fix all the false --> NULL issues in the gradient code BUG= Review URL: https://codereview.appspot.com/7095056 git-svn-id: http://skia.googlecode.com/svn/trunk@7170 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/effects/gradients/SkSweepGradient.cpp b/src/effects/gradients/SkSweepGradient.cpp index 918bf91..8e7ef96 100644 --- a/src/effects/gradients/SkSweepGradient.cpp +++ b/src/effects/gradients/SkSweepGradient.cpp
@@ -475,7 +475,7 @@ GrEffect* SkSweepGradient::asNewEffect(GrContext* context, const SkPaint&) const { SkMatrix matrix; if (!this->getLocalMatrix().invert(&matrix)) { - return false; + return NULL; } matrix.postConcat(fPtsToUnit); return SkNEW_ARGS(GrSweepGradient, (context, *this, matrix));