Index: src/effects/SkLightingImageFilter.cpp |
diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp |
index 24fdd0e9fdd699140a1616a6e380a0c433116bc2..c0c605ca040b88216ccd3b4dbdf7785aa74cb04f 100644 |
--- a/src/effects/SkLightingImageFilter.cpp |
+++ b/src/effects/SkLightingImageFilter.cpp |
@@ -960,8 +960,7 @@ bool SkDiffuseLightingImageFilter::onFilterImage(Proxy* proxy, |
return false; |
} |
- dst->setConfig(src.config(), bounds.width(), bounds.height()); |
- if (!dst->allocPixels()) { |
+ if (!dst->allocPixels(src.info().makeWH(bounds.width(), bounds.height()))) { |
return false; |
} |
@@ -1052,9 +1051,7 @@ bool SkSpecularLightingImageFilter::onFilterImage(Proxy* proxy, |
return false; |
} |
- dst->setConfig(src.config(), bounds.width(), bounds.height()); |
- dst->allocPixels(); |
- if (!dst->getPixels()) { |
+ if (!dst->allocPixels(src.info().makeWH(bounds.width(), bounds.height()))) { |
return false; |
} |