diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-12-02 07:50:11 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-12-02 07:50:11 (GMT) |
commit | 1b56836c0e7715fb1321c9bd48c8d6fd5b56f217 (patch) | |
tree | 489f981d4a6df75eb3d3a09c35fba9ba8e2dfc11 /doc | |
parent | 480b395bd652a4ac6e3f262bd99a045dff95c4ac (diff) | |
download | Qt-1b56836c0e7715fb1321c9bd48c8d6fd5b56f217.zip Qt-1b56836c0e7715fb1321c9bd48c8d6fd5b56f217.tar.gz Qt-1b56836c0e7715fb1321c9bd48c8d6fd5b56f217.tar.bz2 |
Reduce double-copying of textures when flipping upside down
bindTexture() flipped images in-place, to reduce data copying.
But there is one case where the in-place is worse: when the
QImage is not detached. In that case, the flip was copying
the entire image and then flipping the lines, effectively
processing the contents twice. The new version uses mirrored()
to reduce the overhead for non-detached images.
Reviewed-by: Samuel
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions