Draw the image at the origin rather than one pixel to the right.

BUG=none
TEST=favicons, images shouldn't be shifted, left edge shouldn't be broken

Review URL: http://codereview.chromium.org/149473

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20405 0039d316-1c4b-4281-b951-d872f2087c98
Esse commit está contido em:
avi@chromium.org
2009-07-10 20:08:04 +00:00
commit 34aae555c2
+1 -1
Ver Arquivo
@@ -99,7 +99,7 @@ SkBitmap CGImageToSkBitmap(CGImageRef image) {
// happens right-side up. Skia has an upper-left origin and CG has a lower-
// left one.
CGContextScaleCTM(context, 1.0, -1.0);
CGContextTranslateCTM(context, 1, -height);
CGContextTranslateCTM(context, 0, -height);
// We want to copy transparent pixels from |image|, instead of blending it
// onto uninitialized pixels.