summaryrefslogtreecommitdiffstats
path: root/src/openvg/qpaintengine_vg_p.h
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-07-02 00:36:19 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-07-02 00:36:19 (GMT)
commit0b5c4c4352d0419113cf152b7ae5bbee5a45fd5c (patch)
tree16bcfc855db378eb31db6b5c6c30f2cec8b3dd79 /src/openvg/qpaintengine_vg_p.h
parentf31d2c01e5998a9fcf4345fa66e0349921e115da (diff)
downloadQt-0b5c4c4352d0419113cf152b7ae5bbee5a45fd5c.zip
Qt-0b5c4c4352d0419113cf152b7ae5bbee5a45fd5c.tar.gz
Qt-0b5c4c4352d0419113cf152b7ae5bbee5a45fd5c.tar.bz2
OpenVG: override QPaintEngineEx::clip(QRect) and handle specially.
This change should improve performance of single-rectangle clip regions by avoiding the overhead of creating and intersecting QRegion objects. Task-number: QT-64 Reviewed-by: trustme
Diffstat (limited to 'src/openvg/qpaintengine_vg_p.h')
-rw-r--r--src/openvg/qpaintengine_vg_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openvg/qpaintengine_vg_p.h b/src/openvg/qpaintengine_vg_p.h
index a390c80..bde06e5 100644
--- a/src/openvg/qpaintengine_vg_p.h
+++ b/src/openvg/qpaintengine_vg_p.h
@@ -154,6 +154,7 @@ private:
void updateScissor();
QRegion defaultClipRegion();
bool isDefaultClipRegion(const QRegion& region);
+ bool isDefaultClipRect(const QRect& rect);
bool clearRect(const QRectF &rect, const QColor &color);
};