| Index: src/effects/SkMatrixConvolutionImageFilter.cpp
|
| diff --git a/src/effects/SkMatrixConvolutionImageFilter.cpp b/src/effects/SkMatrixConvolutionImageFilter.cpp
|
| index 89e113b8cea9867fb70c99dfcbbe9db532b4718f..ca2cfcaab7890a5a74b79fa75a1fe1041898b076 100644
|
| --- a/src/effects/SkMatrixConvolutionImageFilter.cpp
|
| +++ b/src/effects/SkMatrixConvolutionImageFilter.cpp
|
| @@ -282,9 +282,7 @@ bool SkMatrixConvolutionImageFilter::onFilterImage(Proxy* proxy,
|
| return false;
|
| }
|
|
|
| - result->setConfig(src.config(), bounds.width(), bounds.height());
|
| - result->allocPixels();
|
| - if (!result->getPixels()) {
|
| + if (!result->allocPixels(src.info().makeWH(bounds.width(), bounds.height()))) {
|
| return false;
|
| }
|
|
|
|
|