summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-07 22:04:31 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-07 22:04:31 +0000
commit4d2692ae3cf879014d4094996561a8671428df2a (patch)
tree46703483aad74deccfab3e7a9d467ebbe13af2d8 /ui
parent36f84bceb56e2dfa81efc5b2eec86b5c3d179e36 (diff)
downloadchromium_src-4d2692ae3cf879014d4094996561a8671428df2a.zip
chromium_src-4d2692ae3cf879014d4094996561a8671428df2a.tar.gz
chromium_src-4d2692ae3cf879014d4094996561a8671428df2a.tar.bz2
Don't scale mask image for new tab button.
MatchScale's 2x routine uses canvas which can't scale mask image. This routine should be gone, so I fixed it in tab_strip, rather than fixing this routine. I'll flip the default value of the flag "scaling-in-image-skia-operation" so that mismatch will result in CHECK failure. BUG=163372 TEST=none Review URL: https://codereview.chromium.org/11684002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175394 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/gfx/image/image_skia_operations.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/ui/gfx/image/image_skia_operations.cc b/ui/gfx/image/image_skia_operations.cc
index b07993d..b0940d1 100644
--- a/ui/gfx/image/image_skia_operations.cc
+++ b/ui/gfx/image/image_skia_operations.cc
@@ -167,7 +167,6 @@ class MaskedImageSource : public gfx::ImageSkiaSource {
virtual ImageSkiaRep GetImageForScale(ui::ScaleFactor scale_factor) OVERRIDE {
ImageSkiaRep rgb_rep = rgb_.GetRepresentation(scale_factor);
ImageSkiaRep alpha_rep = alpha_.GetRepresentation(scale_factor);
- MatchScale(&rgb_rep, &alpha_rep);
return ImageSkiaRep(SkBitmapOperations::CreateMaskedBitmap(
rgb_rep.sk_bitmap(), alpha_rep.sk_bitmap()),
rgb_rep.scale_factor());