Improve drawing scaled image with raster using SSE2
authorOlivier Goffart <ogoffart@kde.org>
Mon, 24 Oct 2011 06:02:10 +0000 (08:02 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 24 Oct 2011 11:56:59 +0000 (13:56 +0200)
commit4bff8ea4d48851fbea078bd93226888bdd05d8dc
tree27f8c6fab968a356fc31e3d76148fec038ac2e4c
parentcea8e41dc838bcdc2ec63eefac6441ddc608e390
Improve drawing scaled image with raster using SSE2

That codepath is taken in qml when an Image specify with and hight and
is not smooth, and the image contains alpha contents

The changes in qdrawingprimitive_sse2_p.h just put some code from the
BLEND_SOURCE_OVER_ARGB32_SSE2 macro into a sub macro to allow its reuse

The code that is not SSE2 in qt_scale_image_argb32_on_argb32_sse2 comes
from the qt_scale_image_argb32_on_argb32 in qblendfunctions.cpp

Change-Id: I071a040af4514fb21777dead9f7c5baf16071d59
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/painting/qdrawhelper.cpp
src/gui/painting/qdrawhelper_sse2.cpp
src/gui/painting/qdrawingprimitive_sse2_p.h