| Index: components/favicon_base/favicon_util.cc
|
| diff --git a/components/favicon_base/favicon_util.cc b/components/favicon_base/favicon_util.cc
|
| index 84ead6140c87a8ac1fc0f13b9d2b85387cb42e6f..54efdf45b7b41feffabc6011bdc9fd39a1b05693 100644
|
| --- a/components/favicon_base/favicon_util.cc
|
| +++ b/components/favicon_base/favicon_util.cc
|
| @@ -116,10 +116,7 @@ SkBitmap ResizeBitmapByDownsamplingIfPossible(
|
| // Use nearest neighbour resampling if upsampling by an integer. This
|
| // makes the result look similar to the result of SelectFaviconFrames().
|
| SkBitmap bitmap;
|
| - bitmap.setConfig(SkBitmap::kARGB_8888_Config,
|
| - desired_size_in_pixel,
|
| - desired_size_in_pixel);
|
| - bitmap.allocPixels();
|
| + bitmap.allocN32Pixels(desired_size_in_pixel, desired_size_in_pixel);
|
| if (!best_bitmap.isOpaque())
|
| bitmap.eraseARGB(0, 0, 0, 0);
|
|
|
|
|