Index: src/effects/SkMagnifierImageFilter.cpp |
diff --git a/src/effects/SkMagnifierImageFilter.cpp b/src/effects/SkMagnifierImageFilter.cpp |
index 5096640166b679152493bd11ea9d941798bb127f..99c0176a1131d14879e1093d1913552805413230 100644 |
--- a/src/effects/SkMagnifierImageFilter.cpp |
+++ b/src/effects/SkMagnifierImageFilter.cpp |
@@ -298,9 +298,7 @@ bool SkMagnifierImageFilter::onFilterImage(Proxy*, const SkBitmap& src, |
return false; |
} |
- dst->setConfig(src.config(), src.width(), src.height()); |
- dst->allocPixels(); |
- if (!dst->getPixels()) { |
+ if (!dst->allocPixels(src.info())) { |
return false; |
} |