Index: src/effects/SkDisplacementMapEffect.cpp |
diff --git a/src/effects/SkDisplacementMapEffect.cpp b/src/effects/SkDisplacementMapEffect.cpp |
index 8fc4c86ec5bad966a3407c81f0cdadd233a56b90..3087b63c7ab4a6d1473d182ffb0ec102104729c2 100644 |
--- a/src/effects/SkDisplacementMapEffect.cpp |
+++ b/src/effects/SkDisplacementMapEffect.cpp |
@@ -183,12 +183,11 @@ bool SkDisplacementMapEffect::onFilterImage(Proxy* proxy, |
const SkMatrix& ctm, |
SkBitmap* dst, |
SkIPoint* offset) { |
- SkBitmap displ, color = src; |
+ SkBitmap displ = src, color = src; |
SkImageFilter* colorInput = getColorInput(); |
SkImageFilter* displacementInput = getDisplacementInput(); |
- SkASSERT(NULL != displacementInput); |
if ((colorInput && !colorInput->filterImage(proxy, src, ctm, &color, offset)) || |
- !displacementInput || !displacementInput->filterImage(proxy, src, ctm, &displ, offset)) { |
+ (displacementInput && !displacementInput->filterImage(proxy, src, ctm, &displ, offset))) { |
return false; |
} |
if ((displ.config() != SkBitmap::kARGB_8888_Config) || |