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:
@@ -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.
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário