Index: skia/ext/image_operations.cc |
diff --git a/skia/ext/image_operations.cc b/skia/ext/image_operations.cc |
index 3bb765ff289b7f5c0e4b1e15720361f689067112..bcf01dd0355ee34ed6c81766a7585adc7373d1ed 100644 |
--- a/skia/ext/image_operations.cc |
+++ b/skia/ext/image_operations.cc |
@@ -393,8 +393,8 @@ SkBitmap ImageOperations::ResizeSubpixel(const SkBitmap& source, |
// Render into subpixels. |
SkBitmap result; |
- result.setConfig(SkBitmap::kARGB_8888_Config, dest_subset.width(), |
- dest_subset.height(), 0, img.alphaType()); |
+ result.setInfo(SkImageInfo::MakeN32(dest_subset.width(), dest_subset.height(), |
+ img.alphaType())); |
result.allocPixels(allocator, NULL); |
if (!result.readyToDraw()) |
return img; |
@@ -509,8 +509,7 @@ SkBitmap ImageOperations::ResizeBasic(const SkBitmap& source, |
// Convolve into the result. |
SkBitmap result; |
- result.setConfig(SkBitmap::kARGB_8888_Config, dest_subset.width(), |
- dest_subset.height(), 0, source.alphaType()); |
+ result.setInfo(SkImageInfo::MakeN32(dest_subset.width(), dest_subset.height(), source.alphaType())); |
result.allocPixels(allocator, NULL); |
if (!result.readyToDraw()) |
return SkBitmap(); |