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