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

Unified Diff: ash/launcher/launcher_button.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
« no previous file with comments | « no previous file | ash/system/user/tray_user.cc » ('j') | chrome/browser/chromeos/login/wallpaper_manager.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_button.cc
diff --git a/ash/launcher/launcher_button.cc b/ash/launcher/launcher_button.cc
index cc154c07c53a5aea42cedcc5edceb4a18b000394..b550d56db4cf73964c701957bccf2e92ca1c30ae 100644
--- a/ash/launcher/launcher_button.cc
+++ b/ash/launcher/launcher_button.cc
@@ -274,8 +274,8 @@ void LauncherButton::SetImage(const gfx::ImageSkia& image) {
return;
}
- SetShadowedImage(gfx::ImageSkiaOperations::CreateResizedImage(
- image, gfx::Size(width, height)));
+ SetShadowedImage(gfx::ImageSkiaOperations::CreateResizedImage(image,
+ skia::ImageOperations::RESIZE_BEST, gfx::Size(width, height)));
}
void LauncherButton::AddState(State state) {
« no previous file with comments | « no previous file | ash/system/user/tray_user.cc » ('j') | chrome/browser/chromeos/login/wallpaper_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698