Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Unified Diff: components/favicon_base/favicon_util.cc

Issue 357213002: setConfig is deprecated, use setInfo or allocPixels instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/favicon_base/select_favicon_frames.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | components/favicon_base/select_favicon_frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698