diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-04-23 09:16:53 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-04-24 10:47:39 +0200 |
commit | 861651c67a5f627f615ac1542f945e3c11593406 (patch) | |
tree | 35d4d9a9d9343ddf4751fd1b51931f491c8a58f2 /src/gui/painting/qpaintengine_raster_p.h | |
parent | 89aa644baabd8a118a59cb367aca2adf1363564e (diff) | |
download | qt4-tools-861651c67a5f627f615ac1542f945e3c11593406.tar.gz |
Implement QRasterPaintEngine::clip(QRegion) to do something sensible...
Since we now store QRegion's in the clipdata is possible for us to
detect that we should go back to a rect-clip mode when we get to
clip(region) or clip(rect)
It turns out that the qt_span_fill_clipRegion is very slow, even for
smaller regions, testcase was 3 rects, its 10% worse than span based
clipping. For a fullscreen ellipse it was more in the range of 100x
worse, so I removed the clip function entirely.
Diffstat (limited to 'src/gui/painting/qpaintengine_raster_p.h')
-rw-r--r-- | src/gui/painting/qpaintengine_raster_p.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gui/painting/qpaintengine_raster_p.h b/src/gui/painting/qpaintengine_raster_p.h index 26a2b3ffc0..1f3f006b35 100644 --- a/src/gui/painting/qpaintengine_raster_p.h +++ b/src/gui/painting/qpaintengine_raster_p.h @@ -202,7 +202,6 @@ public: void clip(const QVectorPath &path, Qt::ClipOperation op); void clip(const QRect &rect, Qt::ClipOperation op); void clip(const QRegion ®ion, Qt::ClipOperation op); - void clip(const QPainterPath &path, Qt::ClipOperation op); enum ClipType { RectClip, |