summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profiles
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 /chrome/browser/profiles
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 'chrome/browser/profiles')
-rw-r--r--chrome/browser/profiles/profile_info_util.cc6
1 files changed, 3 insertions, 3 deletions
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;