disable premul check for now in 16bit blit, until we cleanup GDI's mess
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 7 Sep 2011 18:51:31 +0000 (18:51 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 7 Sep 2011 18:51:31 +0000 (18:51 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@2241 2bbb7eff-a529-9590-31e7-b0007b416f81

src/core/SkBlitter_ARGB32.cpp

index c895480..be04026 100644 (file)
@@ -67,10 +67,11 @@ static void blit_lcd16_opaque(SkPMColor dst[], const uint16_t src[],
         int dstG = SkGetPackedG32(d);
         int dstB = SkGetPackedB32(d);
 
-        dst[i] = SkPackARGB32(blend32(0xFF, dstA, maskA),
-                              blend32(srcR, dstR, maskR),
-                              blend32(srcG, dstG, maskG),
-                              blend32(srcB, dstB, maskB));
+        // nocheck version for now, until we cleanup GDI's garbage bits
+        dst[i] = SkPackARGB32NoCheck(blend32(0xFF, dstA, maskA),
+                                     blend32(srcR, dstR, maskR),
+                                     blend32(srcG, dstG, maskG),
+                                     blend32(srcB, dstB, maskB));
     }
 }