diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-05-13 13:33:52 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2016-05-23 13:31:57 +0000 |
commit | f15c0b695aa851086fac04387ed336401e7a562f (patch) | |
tree | c07f871a98b43035af87bcacc77d5721f528fa5d /src/opengl/qglpaintdevice.cpp | |
parent | b8a0c6e7c52ebf56d0895f798946d1f1dbb00c35 (diff) |
Optimize QImage checkForAlphaPixels
This routine is often called to down-convert pixmaps and backing
stores to RGB32.
This patch replaces a comparison in each pixel, with a single AND in
each pixel and a comparison at each line. The new form is also auto-
vectorized by at least GCC.
Change-Id: I3e07585a3ec12f888321d35da57ac99b561dbec4
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/opengl/qglpaintdevice.cpp')
0 files changed, 0 insertions, 0 deletions