Don't verify PMA in writePixels
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 8 Dec 2011 15:03:28 +0000 (15:03 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 8 Dec 2011 15:03:28 +0000 (15:03 +0000)
Review URL: http://codereview.appspot.com/5454043/

git-svn-id: http://skia.googlecode.com/svn/trunk@2828 2bbb7eff-a529-9590-31e7-b0007b416f81

src/core/SkConfig8888.h

index 8a666e7..5e25f6d 100644 (file)
@@ -150,7 +150,8 @@ inline void config8888_copy_to_bitmap(const SkBitmap& dstBmp,
                 g = SkMulDiv255Ceiling(g, a);
                 b = SkMulDiv255Ceiling(b, a);
             }
-            dstRow[x] = SkPackARGB32(a, r, g, b);
+            // NoCheck: https://bugs.webkit.org/show_bug.cgi?id=74025
+            dstRow[x] = SkPackARGB32NoCheck(a, r, g, b);
         }
         src += srcRowBytes;
         dst += dstRowBytes;