Chromium Code Reviews| Index: src/effects/SkAlphaThresholdFilter.cpp |
| diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp |
| index 205e9a9516058f946279ea35b486b352f0bcd7e5..c19083e12d1ea9968ce50e75fdf35aeff6f629ea 100644 |
| --- a/src/effects/SkAlphaThresholdFilter.cpp |
| +++ b/src/effects/SkAlphaThresholdFilter.cpp |
| @@ -323,8 +323,7 @@ bool SkAlphaThresholdFilterImpl::onFilterImage(Proxy*, const SkBitmap& src, |
| return false; |
| } |
|
robertphillips
2014/06/02 13:15:59
This seems odd. Why not just "allocPixels(src.info
reed1
2014/06/02 19:43:06
Ah, right, I didn't see that src == src... :(
|
| - dst->setConfig(src.config(), src.width(), src.height()); |
| - if (!dst->allocPixels()) { |
| + if (!dst->allocPixels(src.info().makeWH(src.width(), src.height()))) { |
| return false; |
| } |