Index: src/effects/SkBicubicImageFilter.cpp |
diff --git a/src/effects/SkBicubicImageFilter.cpp b/src/effects/SkBicubicImageFilter.cpp |
index 8f78ff2bd694a60a4470a6776c2ddf5a46167088..ea2d13e723ed5d4e50cac5bee512194754b7d737 100644 |
--- a/src/effects/SkBicubicImageFilter.cpp |
+++ b/src/effects/SkBicubicImageFilter.cpp |
@@ -107,8 +107,7 @@ bool SkBicubicImageFilter::onFilterImage(Proxy* proxy, |
if (dstIRect.isEmpty()) { |
return false; |
} |
- result->setConfig(src.config(), dstIRect.width(), dstIRect.height()); |
- if (!result->allocPixels()) { |
+ if (!result->allocPixels(src.info().makeWH(dstIRect.width(), dstIRect.height()))) { |
return false; |
} |