[Qt] Decode images directly to QPixmap
authorhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Aug 2010 09:43:50 +0000 (09:43 +0000)
committerSimon Hausmann <simon.hausmann@nokia.com>
Thu, 12 Aug 2010 12:46:27 +0000 (14:46 +0200)
commitf1c7842276d4ca19ad19083b8182b2d1351ebc4f
treea636bd7ef74f48d65e855801db7be7be3820ae95
parent1ca20156e02512399ffa9bdb15e41573f885e450
[Qt] Decode images directly to QPixmap
https://bugs.webkit.org/show_bug.cgi?id=40797

Patch by Benjamin Poulain <benjamin.poulain@nokia.com> on 2010-08-12
Reviewed by Simon Hausmann.

Use the new API of Qt 4.7 to decode data from the image
reader directly to QPixmap.

This allow us to use JDCT_IFAST when decoding jpeg images
to pixmap, and to decode animated GIF images, while still
using in-place conversion of color space.

* platform/graphics/qt/ImageDecoderQt.cpp:
(WebCore::ImageDecoderQt::setData):
(WebCore::ImageDecoderQt::internalHandleCurrentImage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65227 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/graphics/qt/ImageDecoderQt.cpp