diff options
author | Armin Le Grand <Armin.Le.Grand@cib.de> | 2016-07-01 14:00:00 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2016-07-07 22:32:38 +0200 |
commit | cb382034b061b4acd4f0fd490f42af34517a7b8d (patch) | |
tree | d8e08f2957fb6870bace66a32f7cb49c4b2260a5 /include/basegfx/curve | |
parent | 8550366138d576123b9e66a1a7915a04026d79cd (diff) |
tdf#50613 speedup fat line drawing on linux using cairo
Drawing fat lines is slow on linux due to X11 having no direct
support for it. This leads to creating the PolyPolygon geometry
for each fat line, then tesselate and draw as trapezoids. This
is not buffered in any way and is done at each paint.
As a side effect, fat lines composed of multiple anti-aliased
lines also show errors since AA-ed edges do not add up graphically.
Since we have cairo now available it makes sense to use it
for fat line drawing, it is markedly faster despite being a software
renderer. No such gains for PolyPolygons though.
Change-Id: If4001556e2dd4c15ecf2587cad6ce1e864558f2d
Diffstat (limited to 'include/basegfx/curve')
-rw-r--r-- | include/basegfx/curve/b2dcubicbezier.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/basegfx/curve/b2dcubicbezier.hxx b/include/basegfx/curve/b2dcubicbezier.hxx index f97ac2991306..b8254b4b9a2e 100644 --- a/include/basegfx/curve/b2dcubicbezier.hxx +++ b/include/basegfx/curve/b2dcubicbezier.hxx @@ -33,6 +33,7 @@ namespace basegfx { class BASEGFX_DLLPUBLIC B2DCubicBezier { + private: B2DPoint maStartPoint; B2DPoint maEndPoint; B2DPoint maControlPointA; @@ -187,6 +188,12 @@ namespace basegfx sense to use reserve(4) at the vector as preparation. */ void getAllExtremumPositions(::std::vector< double >& rResults) const; + + /// apply transformation given in matrix form + void transform(const basegfx::B2DHomMatrix& rMatrix); + + /// fround content + void fround(); }; } // end of namespace basegfx |