Title: [91393] trunk/Source/WebCore
Revision
91393
Author
[email protected]
Date
2011-07-20 13:10:21 -0700 (Wed, 20 Jul 2011)

Log Message

[skia] use nocheck version of pixel packer when caller already has premultiplied data
https://bugs.webkit.org/show_bug.cgi?id=64881

Patch by Mike Reed <[email protected]> on 2011-07-20
Reviewed by Kenneth Russell.

No new tests. existing canvas and svg test exercise this

* platform/graphics/skia/ImageBufferSkia.cpp:
(WebCore::putImageData):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (91392 => 91393)


--- trunk/Source/WebCore/ChangeLog	2011-07-20 20:06:00 UTC (rev 91392)
+++ trunk/Source/WebCore/ChangeLog	2011-07-20 20:10:21 UTC (rev 91393)
@@ -1,3 +1,15 @@
+2011-07-20  Mike Reed  <[email protected]>
+
+        [skia] use nocheck version of pixel packer when caller already has premultiplied data
+        https://bugs.webkit.org/show_bug.cgi?id=64881
+
+        Reviewed by Kenneth Russell.
+
+        No new tests. existing canvas and svg test exercise this
+
+        * platform/graphics/skia/ImageBufferSkia.cpp:
+        (WebCore::putImageData):
+
 2011-07-20  Tony Chang  <[email protected]>
 
         add new flexbox data to StyleRareNonInheritedData

Modified: trunk/Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp (91392 => 91393)


--- trunk/Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp	2011-07-20 20:06:00 UTC (rev 91392)
+++ trunk/Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp	2011-07-20 20:10:21 UTC (rev 91393)
@@ -306,7 +306,7 @@
                 unsigned char b = SkMulDiv255Ceiling(srcPixel[2], alpha);
                 destRow[x] = SkPackARGB32(alpha, r, g, b);
             } else
-                destRow[x] = SkPackARGB32(srcPixel[3], srcPixel[0], srcPixel[1], srcPixel[2]);
+                destRow[x] = SkPackARGB32NoCheck(srcPixel[3], srcPixel[0], srcPixel[1], srcPixel[2]);
         }
         srcRow += srcBytesPerRow;
     }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to