summaryrefslogtreecommitdiffstats
path: root/ui/aura_shell
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-20 00:10:13 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-20 00:10:13 +0000
commitfc22f9ef9b459af24ca666e44350d0c8b27b312b (patch)
treeef042cfcc658dc359e2958cdd2d063cf2d4d814a /ui/aura_shell
parente24f876c537646cab5a9e8492658f570ccd7da4a (diff)
downloadchromium_src-fc22f9ef9b459af24ca666e44350d0c8b27b312b.zip
chromium_src-fc22f9ef9b459af24ca666e44350d0c8b27b312b.tar.gz
chromium_src-fc22f9ef9b459af24ca666e44350d0c8b27b312b.tar.bz2
Make CanvasSkia take a gfx::Size as the first parameter.
BUG=100898 R=pkasting@chromium.org TBR=ben@chromium.org,stevenjb@chromium.org Review URL: http://codereview.chromium.org/8990003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115046 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura_shell')
-rw-r--r--ui/aura_shell/launcher/app_launcher_button.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/aura_shell/launcher/app_launcher_button.cc b/ui/aura_shell/launcher/app_launcher_button.cc
index 6f88b37..b2ee40e 100644
--- a/ui/aura_shell/launcher/app_launcher_button.cc
+++ b/ui/aura_shell/launcher/app_launcher_button.cc
@@ -47,7 +47,7 @@ void AppLauncherButton::SetAppImage(const SkBitmap& image) {
SetImage(BS_NORMAL, &image);
return;
}
- gfx::CanvasSkia canvas(width, height, false);
+ gfx::CanvasSkia canvas(gfx::Size(width, height), false);
canvas.DrawBitmapInt(image, 0, 0, image.width(), image.height(),
0, 0, width, height, false);
SkBitmap resized_image(canvas.ExtractBitmap());