diff options
| author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-06-19 19:56:29 (GMT) |
|---|---|---|
| committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-06-20 02:30:33 (GMT) |
| commit | 0a96503e84b418708712af61497df4a493ed9072 (patch) | |
| tree | a1b29c6416f0896a3c9fee394c7858a0ec744713 /doc/src/snippets/code/src_opengl_qgl.cpp | |
| parent | cf5971503ee1f7a5ce96758e33796dfdf48375bf (diff) | |
| download | Qt-0a96503e84b418708712af61497df4a493ed9072.zip Qt-0a96503e84b418708712af61497df4a493ed9072.tar.gz Qt-0a96503e84b418708712af61497df4a493ed9072.tar.bz2 | |
Start the implementation of in-place recoding for images
Currently, with the graphics system raster, converting from images
to QPixmap often needs to allocate a new image to convert the right
format.
For example, for an image in ARGB32 of 10 mbytes, we need to allocate
a second image of 10 mbytes in ARGB32_PM to convert the source image
in the right format for pixmap.
This can create a hight peak of memory, and is a bit slower
than it should.
This patch introduce in-place conversion of images when they are
loaded with QPixmap::loadFromData().
The images are loaded in their default format by QImageReader,
and are then converted in-place, trying to reduce memory
allocations.
Reviewed-by: Samuel Rødal
Diffstat (limited to 'doc/src/snippets/code/src_opengl_qgl.cpp')
0 files changed, 0 insertions, 0 deletions
