diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2010-05-11 10:46:46 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2010-05-12 12:59:34 (GMT) |
commit | c46688b8a88da02028405604ab633b27d3fefa68 (patch) | |
tree | ca595b07c4cdf82767c10a52bbeaba75490f42f9 /src/gui/painting/qbezier_p.h | |
parent | 9b6041bf62cfd2b0be62134ff6ee0fd488ce5921 (diff) | |
download | Qt-c46688b8a88da02028405604ab633b27d3fefa68.zip Qt-c46688b8a88da02028405604ab633b27d3fefa68.tar.gz Qt-c46688b8a88da02028405604ab633b27d3fefa68.tar.bz2 |
Made curve tesselation be dynamically adjusted based on transform.
This lets us avoid having to use a very low curve threshold value for
all scales, and thus avoids the performance regression from change
c41dbbb5e6495e26cd32.
Task-number: QTBUG-9218
Reviewed-by: Gunnar Sletta
Diffstat (limited to 'src/gui/painting/qbezier_p.h')
-rw-r--r-- | src/gui/painting/qbezier_p.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/painting/qbezier_p.h b/src/gui/painting/qbezier_p.h index 846635f..18ec116 100644 --- a/src/gui/painting/qbezier_p.h +++ b/src/gui/painting/qbezier_p.h @@ -79,10 +79,9 @@ public: inline QPointF derivedAt(qreal t) const; inline QPointF secondDerivedAt(qreal t) const; - QPolygonF toPolygon() const; - void addToPolygon(QPolygonF *p) const; - void addToPolygonIterative(QPolygonF *p) const; - void addToPolygonMixed(QPolygonF *p) const; + QPolygonF toPolygon(qreal bezier_flattening_threshold = 0.5) const; + void addToPolygon(QPolygonF *p, qreal bezier_flattening_threshold = 0.5) const; + QRectF bounds() const; qreal length(qreal error = 0.01) const; void addIfClose(qreal *length, qreal error) const; |