diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-06-28 15:08:12 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-06-28 16:52:44 +0200 |
commit | 01b72952c38b9193138eabdab6bdab632cd75ebd (patch) | |
tree | b85f75709c576674aeed662686a73b39b55ab614 /src/openvg | |
parent | 73df041f6c7f8c5f8d22fbaacb661d1f5d4cf5d6 (diff) |
Remove QPainter::UniteClip
Change-Id: I5413cb5e2cbb53998bb40f27b9bbc16342caafe6
Reviewed-on: http://codereview.qt.nokia.com/837
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/openvg')
-rw-r--r-- | src/openvg/qpaintengine_vg.cpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/openvg/qpaintengine_vg.cpp b/src/openvg/qpaintengine_vg.cpp index c156cb8710..b919b087cf 100644 --- a/src/openvg/qpaintengine_vg.cpp +++ b/src/openvg/qpaintengine_vg.cpp @@ -1693,12 +1693,6 @@ void QVGPaintEngine::clip(const QVectorPath &path, Qt::ClipOperation op) region = s->clipRegion.intersect(d->transform.map(region)); } break; - - case Qt::UniteClip: - { - region = s->clipRegion.unite(d->transform.map(region)); - } - break; } if (region.numRects() <= d->maxScissorRects) { // We haven't reached the maximum scissor count yet, so we can @@ -1738,12 +1732,6 @@ void QVGPaintEngine::clip(const QRect &rect, Qt::ClipOperation op) s->clipRegion = s->clipRegion.intersect(d->transform.map(QRegion(rect))); } break; - - case Qt::UniteClip: - { - s->clipRegion = s->clipRegion.unite(d->transform.map(QRegion(rect))); - } - break; } updateScissor(); @@ -1774,12 +1762,6 @@ void QVGPaintEngine::clip(const QRegion ®ion, Qt::ClipOperation op) s->clipRegion = s->clipRegion.intersect(d->transform.map(region)); } break; - - case Qt::UniteClip: - { - s->clipRegion = s->clipRegion.unite(d->transform.map(region)); - } - break; } updateScissor(); @@ -1835,10 +1817,6 @@ void QVGPaintEngine::clip(const QVectorPath &path, Qt::ClipOperation op) VGPath vgpath = d->vectorPathToVGPath(path); switch (op) { case Qt::ReplaceClip: - case Qt::UniteClip: - vgRenderToMask(vgpath, VG_FILL_PATH, VG_UNION_MASK); - break; - case Qt::IntersectClip: vgRenderToMask(vgpath, VG_FILL_PATH, VG_INTERSECT_MASK); break; @@ -1955,15 +1933,6 @@ void QVGPaintEngine::clip(const QRect &rect, Qt::ClipOperation op) } } break; - - case Qt::UniteClip: - { - // If we already have a full-window clip, then uniting a - // region with it will do nothing. Otherwise union. - if (!(d->maskIsSet)) - d->modifyMask(this, VG_UNION_MASK, d->transform.mapRect(rect)); - } - break; } } @@ -2059,15 +2028,6 @@ void QVGPaintEngine::clip(const QRegion ®ion, Qt::ClipOperation op) } } break; - - case Qt::UniteClip: - { - // If we already have a full-window clip, then uniting a - // region with it will do nothing. Otherwise union. - if (!(d->maskIsSet)) - d->modifyMask(this, VG_UNION_MASK, d->transform.map(region)); - } - break; } } @@ -2152,10 +2112,6 @@ void QVGPaintEngine::clip(const QPainterPath &path, Qt::ClipOperation op) VGPath vgpath = d->painterPathToVGPath(path); switch (op) { case Qt::ReplaceClip: - case Qt::UniteClip: - vgRenderToMask(vgpath, VG_FILL_PATH, VG_UNION_MASK); - break; - case Qt::IntersectClip: vgRenderToMask(vgpath, VG_FILL_PATH, VG_INTERSECT_MASK); break; |