[CG] ImageBuffer::toDataURL: Remove alpha stuffing loop when encoding to JPEG
authornoel.gordon@gmail.com <noel.gordon@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Apr 2012 06:56:22 +0000 (06:56 +0000)
committernoel.gordon@gmail.com <noel.gordon@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Apr 2012 06:56:22 +0000 (06:56 +0000)
commite90d726bece54cc099a86203c2f44794df4203e8
treee80b75b78c656c30fb01a1768a1acbf4307a7a38
parent6ff485f7ac60ddf41ce1be884b1c364cf8b5a1ff
[CG] ImageBuffer::toDataURL: Remove alpha stuffing loop when encoding to JPEG
https://bugs.webkit.org/show_bug.cgi?id=84319

Reviewed by Eric Seidel.

No change in behavior. Covered by existing canvas 2d and 3d tests:

  canvas/philip/tests/toDataURL.jpeg.alpha.html
  fast/canvas/webgl/premultiplyalpha-test.html

* platform/graphics/cg/ImageBufferCG.cpp:
(WebCore::ImageBuffer::toDataURL): Remove the alpha stuffing loop and instead,
make JPEG encoder ignore the alpha channel (kCGImageAlphaNoneSkipLast).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@114616 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp