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

Unified Diff: ui/app_list/app_list_item_view.cc

Issue 10823358: image: Specify the resize-method when resizing ImageSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deep-copy Created 8 years, 4 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
Index: ui/app_list/app_list_item_view.cc
diff --git a/ui/app_list/app_list_item_view.cc b/ui/app_list/app_list_item_view.cc
index 1b8c0cf19651ddb65564372a28f7b246f41e8f2d..03663adca0d9c470d59cf3e84c872ef3a84e7e1f 100644
--- a/ui/app_list/app_list_item_view.cc
+++ b/ui/app_list/app_list_item_view.cc
@@ -100,8 +100,8 @@ class AppListItemView::IconOperation
if (cancel_flag_.IsSet())
return;
- gfx::ImageSkia resized(
- gfx::ImageSkiaOperations::CreateResizedImage(image_, size_));
+ gfx::ImageSkia resized(gfx::ImageSkiaOperations::CreateResizedImage(image_,
+ skia::ImageOperations::RESIZE_BEST, size_));
gfx::ImageSkia shadow(
gfx::ImageSkiaOperations::CreateImageWithDropShadow(resized, shadows_));

Powered by Google App Engine
This is Rietveld 408576698