| Index: trunk/src/chrome/browser/profiles/profile_info_util.cc
|
| ===================================================================
|
| --- trunk/src/chrome/browser/profiles/profile_info_util.cc (revision 224497)
|
| +++ trunk/src/chrome/browser/profiles/profile_info_util.cc (working copy)
|
| @@ -23,7 +23,7 @@
|
| int length = std::min(width, height) - kAvatarIconBorder;
|
| SkBitmap bmp = skia::ImageOperations::Resize(
|
| *image.ToSkBitmap(), skia::ImageOperations::RESIZE_BEST, length, length);
|
| - gfx::Canvas canvas(gfx::Size(width, height), 1.0f, false);
|
| + gfx::Canvas canvas(gfx::Size(width, height), ui::SCALE_FACTOR_100P, false);
|
|
|
| // Draw the icon centered on the canvas.
|
| int x = (width - length) / 2;
|
| @@ -52,8 +52,8 @@
|
| std::min(kAvatarIconWidth, kAvatarIconHeight) - kAvatarIconBorder;
|
| SkBitmap bmp = skia::ImageOperations::Resize(
|
| *image.ToSkBitmap(), skia::ImageOperations::RESIZE_BEST, length, length);
|
| - gfx::Canvas canvas(
|
| - gfx::Size(kAvatarIconWidth, kAvatarIconHeight), 1.0f, false);
|
| + gfx::Canvas canvas(gfx::Size(kAvatarIconWidth, kAvatarIconHeight),
|
| + ui::SCALE_FACTOR_100P, false);
|
|
|
| // Draw the icon centered on the canvas.
|
| int x = (kAvatarIconWidth - length) / 2;
|
| @@ -74,7 +74,8 @@
|
| std::min(dst_width, dst_height)) - kAvatarIconBorder;
|
| SkBitmap bmp = skia::ImageOperations::Resize(
|
| *image.ToSkBitmap(), skia::ImageOperations::RESIZE_BEST, length, length);
|
| - gfx::Canvas canvas(gfx::Size(dst_width, dst_height), 1.0f, false);
|
| + gfx::Canvas canvas(gfx::Size(dst_width, dst_height), ui::SCALE_FACTOR_100P,
|
| + false);
|
|
|
| // Draw the icon on the bottom center of the canvas.
|
| int x1 = (dst_width - length) / 2;
|
| @@ -101,4 +102,4 @@
|
| return gfx::Image(gfx::ImageSkia(canvas.ExtractImageRep()));
|
| }
|
|
|
| -} // namespace profiles
|
| +} // namespace
|
|
|