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