summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qbezier_p.h
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2011-12-12 12:57:08 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-16 00:51:47 +0100
commit6506e0a6eec67985432427c630b148e825184c5d (patch)
tree1216f1ef8fe485fd6f5d0fa306a0cb29d1e4d2b5 /src/gui/painting/qbezier_p.h
parent7b874b7fc4c56a039eaab7f8828379637fff8212 (diff)
Improved path filling performance in the raster paint engine.
Convert bezier curves to polylines before rasterizing with gray raster. Change-Id: I353debd4338f2a3ce2fa1cfa1bff9dd2e36f05ab Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/gui/painting/qbezier_p.h')
-rw-r--r--src/gui/painting/qbezier_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/painting/qbezier_p.h b/src/gui/painting/qbezier_p.h
index f1f7eb155a..e8594ffa5a 100644
--- a/src/gui/painting/qbezier_p.h
+++ b/src/gui/painting/qbezier_p.h
@@ -60,6 +60,7 @@
#include "QtCore/qlist.h"
#include "QtCore/qpair.h"
#include "QtGui/qtransform.h"
+#include <private/qdatabuffer_p.h>
QT_BEGIN_NAMESPACE
@@ -81,6 +82,7 @@ public:
QPolygonF toPolygon(qreal bezier_flattening_threshold = 0.5) const;
void addToPolygon(QPolygonF *p, qreal bezier_flattening_threshold = 0.5) const;
+ void addToPolygon(QDataBuffer<QPointF> &polygon, qreal bezier_flattening_threshold) const;
QRectF bounds() const;
qreal length(qreal error = 0.01) const;