diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-10-20 09:00:02 +1000 |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-10-20 09:00:02 +1000 |
commit | bbbb62552b1c0f68b960c1412c66b6381e7dd4d1 (patch) | |
tree | 96d670a612de86e854480d403474238fe3e940c1 /src/gui/text/qfontengine_mac.mm | |
parent | 02c15e6a8cdb0f8a0bb6ee36880877fe90334d69 (diff) |
Optimize QVGPixmapDropShadowFilter by removing colorize step
Previously, the drop shadow was colorizing the incoming
image and then blurring the colorized version. This change
first blurs the image to an alpha-only VGImage and then uses
that VGImage as a stencil to draw the drop shadow color.
This way, there is only 1 filter step and a draw instead of
2 filter steps and a draw. The result is to make the performance
of the drop shadow filter almost identical to the blur filter.
Reviewed-by: trustme
Diffstat (limited to 'src/gui/text/qfontengine_mac.mm')
0 files changed, 0 insertions, 0 deletions