From fc22f9ef9b459af24ca666e44350d0c8b27b312b Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Tue, 20 Dec 2011 00:10:13 +0000 Subject: 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 --- ui/aura_shell/launcher/app_launcher_button.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/aura_shell') 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()); -- cgit v1.1