From 648ee7aa020d04b160ec56187f49f761ffab93cc Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 4 Apr 2018 17:45:28 +0200 Subject: Merge drawhelper convert-from and store Avoids using an intermediate buffer on store and simplifies the code. Change-Id: I2dc4e735eb770f90dc99fe0f513b4df3b35ee793 Reviewed-by: Eirik Aavitsland --- src/gui/painting/qdrawhelper_neon.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/gui/painting/qdrawhelper_neon.cpp') diff --git a/src/gui/painting/qdrawhelper_neon.cpp b/src/gui/painting/qdrawhelper_neon.cpp index e126f4b670..44d4037c0d 100644 --- a/src/gui/painting/qdrawhelper_neon.cpp +++ b/src/gui/painting/qdrawhelper_neon.cpp @@ -1153,18 +1153,14 @@ static inline void convertARGBToARGB32PM_neon(uint *buffer, const uint *src, int } } -const uint *QT_FASTCALL convertARGB32ToARGB32PM_neon(uint *buffer, const uint *src, int count, - const QVector *, QDitherInfo *) +void QT_FASTCALL convertARGB32ToARGB32PM_neon(uint *buffer, int count, const QVector *) { - convertARGBToARGB32PM_neon(buffer, src, count); - return buffer; + convertARGBToARGB32PM_neon(buffer, buffer, count); } -const uint *QT_FASTCALL convertRGBA8888ToARGB32PM_neon(uint *buffer, const uint *src, int count, - const QVector *, QDitherInfo *) +void QT_FASTCALL convertRGBA8888ToARGB32PM_neon(uint *buffer, int count, const QVector *) { - convertARGBToARGB32PM_neon(buffer, src, count); - return buffer; + convertARGBToARGB32PM_neon(buffer, buffer, count); } #endif // Q_BYTE_ORDER == Q_LITTLE_ENDIAN -- cgit v1.2.3