summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-17 23:18:25 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-17 23:18:25 +0000
commit15b9ade97761f5f81cc4e97268061c72de37d888 (patch)
treee753a26c16bfd3c5cc75b6e636fd0bde7dad25ca /ui
parenta0845ab256c4bcc14bddc01997c5ae15d69706bb (diff)
downloadchromium_src-15b9ade97761f5f81cc4e97268061c72de37d888.zip
chromium_src-15b9ade97761f5f81cc4e97268061c72de37d888.tar.gz
chromium_src-15b9ade97761f5f81cc4e97268061c72de37d888.tar.bz2
ash: Make sure the user-image in the tray does not get pixelated in high-dpi.
BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10702104 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147129 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/gfx/image/image_skia_operations.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gfx/image/image_skia_operations.cc b/ui/gfx/image/image_skia_operations.cc
index 9ca19b9..8a3aa12 100644
--- a/ui/gfx/image/image_skia_operations.cc
+++ b/ui/gfx/image/image_skia_operations.cc
@@ -161,14 +161,14 @@ class ResizeSource : public ImageSkiaSource {
image_rep.GetHeight() == target_dip_size_.height())
return image_rep;
- const float scale = image_rep.GetScale();
+ const float scale = ui::GetScaleFactorScale(scale_factor);
const Size target_pixel_size(target_dip_size_.Scale(scale));
const SkBitmap resized = skia::ImageOperations::Resize(
image_rep.sk_bitmap(),
skia::ImageOperations::RESIZE_BEST,
target_pixel_size.width(),
target_pixel_size.height());
- return ImageSkiaRep(resized, image_rep.scale_factor());
+ return ImageSkiaRep(resized, scale_factor);
}
private: