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 --- chrome/browser/profiles/profile_info_util.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/browser/profiles') diff --git a/chrome/browser/profiles/profile_info_util.cc b/chrome/browser/profiles/profile_info_util.cc index 16e30c4..243f687 100644 --- a/chrome/browser/profiles/profile_info_util.cc +++ b/chrome/browser/profiles/profile_info_util.cc @@ -21,7 +21,7 @@ gfx::Image GetAvatarIconForMenu(const gfx::Image& image, int length = std::min(kAvatarIconWidth, kAvatarIconHeight) - 2; SkBitmap bmp = skia::ImageOperations::Resize( image, skia::ImageOperations::RESIZE_BEST, length, length); - gfx::CanvasSkia canvas(kAvatarIconWidth, kAvatarIconHeight, false); + gfx::CanvasSkia canvas(gfx::Size(kAvatarIconWidth, kAvatarIconHeight), false); // Draw the icon centered on the canvas. int x = (kAvatarIconWidth - length) / 2; @@ -43,7 +43,7 @@ gfx::Image GetAvatarIconForWebUI(const gfx::Image& image, int length = std::min(kAvatarIconWidth, kAvatarIconHeight) - 2; SkBitmap bmp = skia::ImageOperations::Resize( image, skia::ImageOperations::RESIZE_BEST, length, length); - gfx::CanvasSkia canvas(kAvatarIconWidth, kAvatarIconHeight, false); + gfx::CanvasSkia canvas(gfx::Size(kAvatarIconWidth, kAvatarIconHeight), false); // Draw the icon centered on the canvas. int x = (kAvatarIconWidth - length) / 2; @@ -64,7 +64,7 @@ gfx::Image GetAvatarIconForTitleBar(const gfx::Image& image, std::min(dst_width, dst_height)) - 2; SkBitmap bmp = skia::ImageOperations::Resize( image, skia::ImageOperations::RESIZE_BEST, length, length); - gfx::CanvasSkia canvas(dst_width, dst_height, false); + gfx::CanvasSkia canvas(gfx::Size(dst_width, dst_height), false); // Draw the icon on the bottom center of the canvas. int x1 = (dst_width - length) / 2; -- cgit v1.1