diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-10-07 13:37:31 +0200 |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-10-07 18:15:44 +0200 |
commit | 57209cf902f9d0c9bea5b599b54fa4bdc015d2b5 (patch) | |
tree | 28fb71ec163c9729bd01f12fb37499515d20a03a /src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h | |
parent | 01f0164d71612ba3f03f2e8f58ff6137dc38e4cf (diff) |
Optimized clipping in the GL 2 engine for winding fills.
When no stencil clip is set we reduce the number of compositing passes
for rendering winding fill paths from four to two. When stencil clip is
set, the number of compositing passes is reduced from five to four.
For clipping with a winding fill path, the number of compositing passes
are reduced from five to four when stencil clipping is already enabled.
A performance improvement of up to 85 % was measured in certain cases.
Reviewed-by: Trond
Diffstat (limited to 'src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h')
-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 28c972ed32..46be398fac 100644 --- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h +++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h @@ -223,6 +223,7 @@ public: bool shaderMatrixUniformDirty; bool opacityUniformDirty; + bool stencilClean; // Has the stencil not been used for clipping so far? QRegion dirtyStencilRegion; QRect currentScissorBounds; uint maxClip; |