diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-09-23 12:22:03 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-09-24 08:56:53 (GMT) |
commit | 6d21ee6269a40c0d70e358cc1149d332ca84f868 (patch) | |
tree | dd8770dae488d6077ee103db3722d12e3828fc7c /src/opengl/gl2paintengineex | |
parent | e8a71fcacb21897418b80ac1977b3a5c64b4fb71 (diff) | |
download | Qt-6d21ee6269a40c0d70e358cc1149d332ca84f868.zip Qt-6d21ee6269a40c0d70e358cc1149d332ca84f868.tar.gz Qt-6d21ee6269a40c0d70e358cc1149d332ca84f868.tar.bz2 |
Made fast blur in GL 2 engine be radius independent.
This is useful when animating the blur radius, as you don't want to
suffer the hit of compiling / linking a new shader program for each
radius the first time the animation is played.
Also use the fast blur when the radius is 5 or below, as the quality
difference is insignificant.
Reviewed-by: Rhys Weatherley
Diffstat (limited to 'src/opengl/gl2paintengineex')
-rw-r--r-- | src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h b/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h index 738626f..f245945 100644 --- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h +++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h @@ -273,6 +273,7 @@ public: QScopedPointer<QPixmapFilter> convolutionFilter; QScopedPointer<QPixmapFilter> colorizeFilter; QScopedPointer<QPixmapFilter> blurFilter; + QScopedPointer<QPixmapFilter> fastBlurFilter; }; QT_END_NAMESPACE |