Improved gradient table generation performance for two-stop gradients.
authorSamuel Rødal <samuel.rodal@nokia.com>
Wed, 13 Apr 2011 08:15:06 +0000 (10:15 +0200)
committerOlivier Goffart <olivier.goffart@nokia.com>
Tue, 10 May 2011 10:54:45 +0000 (12:54 +0200)
commite05443367f60e591556ae8854ecb634a7cf6ea33
treedbc1a06cb4d7e76f25c0b1ca6f7d79ea7daf4f5e
parentdb5803959182f891259b457b5bac2ed54785b709
Improved gradient table generation performance for two-stop gradients.

Two stops is a fairly common case so we gain quite a bit by special
casing it. Improves performance by 10 % in parcycle benchmark, and
by 90 % in a synthetic benchmark.

Reviewed-by: Andreas Kling
(cherry picked from commit 5b74a70ac630073582be56f8a0539624a1080185)
src/gui/painting/qdrawhelper.cpp
src/gui/painting/qdrawhelper_neon.cpp
src/gui/painting/qdrawhelper_p.h
src/gui/painting/qdrawhelper_sse2.cpp
src/gui/painting/qpaintengine_raster.cpp
tests/auto/qpainter/tst_qpainter.cpp