summaryrefslogtreecommitdiffstats
path: root/src/openvg/qpaintengine_vg_p.h
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-09-20 23:22:07 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-09-20 23:22:07 (GMT)
commit1b8d92b1ae453bd2d395658c7086d0049916e88f (patch)
tree5d2c7f6e879af1b029653ae6c73ab10a9e696cab /src/openvg/qpaintengine_vg_p.h
parentcd48ed92670a0d086589b202364f38f14e7221c9 (diff)
downloadQt-1b8d92b1ae453bd2d395658c7086d0049916e88f.zip
Qt-1b8d92b1ae453bd2d395658c7086d0049916e88f.tar.gz
Qt-1b8d92b1ae453bd2d395658c7086d0049916e88f.tar.bz2
Accelerate drawRoundedRect() for the OpenVG paint engine
Previously rounded rectangles were converted into a QVectorPath and then a VGPath. This change creates the VGPath directly without an intermediate step and was made possible by change dd3e4308. Reviewed-by: trustme
Diffstat (limited to 'src/openvg/qpaintengine_vg_p.h')
-rw-r--r--src/openvg/qpaintengine_vg_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openvg/qpaintengine_vg_p.h b/src/openvg/qpaintengine_vg_p.h
index 5c0f525..a3487dc 100644
--- a/src/openvg/qpaintengine_vg_p.h
+++ b/src/openvg/qpaintengine_vg_p.h
@@ -108,6 +108,8 @@ public:
void fillRect(const QRectF &rect, const QBrush &brush);
void fillRect(const QRectF &rect, const QColor &color);
+ void drawRoundedRect(const QRectF &rect, qreal xrad, qreal yrad, Qt::SizeMode mode);
+
void drawRects(const QRect *rects, int rectCount);
void drawRects(const QRectF *rects, int rectCount);