Index: src/core/SkBitmapScaler.cpp |
diff --git a/src/core/SkBitmapScaler.cpp b/src/core/SkBitmapScaler.cpp |
index be32a891fcd8c4a9226514ecc4806179a889ddd4..ebcccf2fe0eabc6bfd38d53974d347d9cc6695da 100644 |
--- a/src/core/SkBitmapScaler.cpp |
+++ b/src/core/SkBitmapScaler.cpp |
@@ -296,9 +296,9 @@ |
// Convolve into the result. |
SkBitmap result; |
- result.setInfo(SkImageInfo::MakeN32(SkScalarCeilToInt(destSubset.width()), |
- SkScalarCeilToInt(destSubset.height()), |
- source.alphaType())); |
+ result.setConfig(SkImageInfo::MakeN32(SkScalarCeilToInt(destSubset.width()), |
+ SkScalarCeilToInt(destSubset.height()), |
+ source.alphaType())); |
result.allocPixels(allocator, NULL); |
if (!result.readyToDraw()) { |
return false; |