summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qdrawhelper.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-04-13 08:15:06 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2011-04-13 08:17:18 (GMT)
commit5b74a70ac630073582be56f8a0539624a1080185 (patch)
tree14a73dd71ac328cf27d20e4fc9553fa692952180 /src/gui/painting/qdrawhelper.cpp
parent26bd3dccdee8c6a8f1cf9d254a2a6be7d403aa8d (diff)
downloadQt-5b74a70ac630073582be56f8a0539624a1080185.zip
Qt-5b74a70ac630073582be56f8a0539624a1080185.tar.gz
Qt-5b74a70ac630073582be56f8a0539624a1080185.tar.bz2
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
Diffstat (limited to 'src/gui/painting/qdrawhelper.cpp')
-rw-r--r--src/gui/painting/qdrawhelper.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/painting/qdrawhelper.cpp b/src/gui/painting/qdrawhelper.cpp
index a676fe9..fd26676 100644
--- a/src/gui/painting/qdrawhelper.cpp
+++ b/src/gui/painting/qdrawhelper.cpp
@@ -7834,6 +7834,11 @@ void qInitDrawhelperAsm()
qMemRotateFunctions[QImage::Format_RGB16][0] = qt_memrotate90_16_neon;
qMemRotateFunctions[QImage::Format_RGB16][2] = qt_memrotate270_16_neon;
qt_memfill32 = qt_memfill32_neon;
+
+ extern const uint * QT_FASTCALL qt_fetch_radial_gradient_neon(uint *buffer, const Operator *op, const QSpanData *data,
+ int y, int x, int length);
+
+ qt_fetch_radial_gradient = qt_fetch_radial_gradient_neon;
}
#endif