diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-09-21 09:22:07 +1000 |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-09-21 09:22:07 +1000 |
commit | 1b8d92b1ae453bd2d395658c7086d0049916e88f (patch) | |
tree | 5d2c7f6e879af1b029653ae6c73ab10a9e696cab /src/openvg/qpaintengine_vg_p.h | |
parent | cd48ed92670a0d086589b202364f38f14e7221c9 (diff) | |
download | qt4-tools-1b8d92b1ae453bd2d395658c7086d0049916e88f.tar.gz |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openvg/qpaintengine_vg_p.h b/src/openvg/qpaintengine_vg_p.h index 5c0f525ab2..a3487dcc13 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); |