Index: src/effects/SkLightingImageFilter.cpp |
diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp |
index b24a91eb44ed355e6501a1fa25d29544103dd7b2..81c62fe6dc86552cf79e9034eca8b773e137a607 100644 |
--- a/src/effects/SkLightingImageFilter.cpp |
+++ b/src/effects/SkLightingImageFilter.cpp |
@@ -952,8 +952,7 @@ bool SkDiffuseLightingImageFilter::onFilterImage(Proxy* proxy, |
} |
dst->setConfig(src.config(), bounds.width(), bounds.height()); |
- dst->allocPixels(); |
- if (!dst->getPixels()) { |
+ if (!dst->allocPixels()) { |
return false; |
} |