summaryrefslogtreecommitdiffstats
path: root/components/favicon_base/favicon_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'components/favicon_base/favicon_util.cc')
-rw-r--r--components/favicon_base/favicon_util.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/components/favicon_base/favicon_util.cc b/components/favicon_base/favicon_util.cc
index 84ead61..54efdf4 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);