Index: src/effects/SkDisplacementMapEffect.cpp |
diff --git a/src/effects/SkDisplacementMapEffect.cpp b/src/effects/SkDisplacementMapEffect.cpp |
index 8264ec8e0675113362858b7c68c419b3febe8fcd..6ad46badb9af994ec36248df5dee687a6994a86c 100644 |
--- a/src/effects/SkDisplacementMapEffect.cpp |
+++ b/src/effects/SkDisplacementMapEffect.cpp |
@@ -229,8 +229,7 @@ bool SkDisplacementMapEffect::onFilterImage(Proxy* proxy, |
} |
dst->setConfig(color.config(), bounds.width(), bounds.height()); |
- dst->allocPixels(); |
- if (!dst->getPixels()) { |
+ if (!dst->allocPixels()) { |
return false; |
} |