diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2013-08-09 11:14:36 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-09 17:36:15 +0200 |
commit | eab5d78ef51a9a36414960714853341087bb8e99 (patch) | |
tree | b40544dfcecf99d82fe28a406847e851651d98f8 /Source/JavaScriptCore/runtime/JSONObject.cpp | |
parent | 6ba7d28706c770b0921de5a56cb24be85d8f179a (diff) | |
download | qtwebkit-eab5d78ef51a9a36414960714853341087bb8e99.tar.gz |
[Qt] Images are down-scaled badly
https://bugs.webkit.org/show_bug.cgi?id=119263
Reviewed by Jocelyn Turcotte.
QPainter only does bilinear filtering, which means it will downscaling beyond
0.5x will start skipping pixel and start to degrade the end result. Scaling in
QImage and QPixmap however uses a better but much more expensive sampling that
counts all pixels.
To get the high quality downscaling we must therefore prescale the images before
painting them. To avoid a performance impact on repeated paints the prescaled
image are saved in the QPixmapCache.
* platform/graphics/qt/ImageQt.cpp:
(WebCore::BitmapImage::draw):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153522 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Task-number: QTBUG-30155
Change-Id: I8b07de1d7415bc4e2dea565df92739e3ff2014b4
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'Source/JavaScriptCore/runtime/JSONObject.cpp')
0 files changed, 0 insertions, 0 deletions