diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-09 11:54:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-09 13:31:02 +0200 |
commit | 01304a0a3e5d52f46c8519d640ff3787ca3dca7c (patch) | |
tree | ce7d4ea27cebeef4949d8f7d5f0ae4fe04b867bd | |
parent | 80a3538d1e68b25fabd03d391ebe3d75e40681bf (diff) |
tdf#104878 use faster but less accurate cairo_path_extents
which doesn't matter for damage calculations, halves the time in
processPolygonStrokePrimitive2D
Change-Id: I0e3d37e77e7760d484b961de8bef22cc5ba1e09a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91957
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | vcl/headless/svpgdi.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx index 445afef65400..b5649b093e31 100644 --- a/vcl/headless/svpgdi.cxx +++ b/vcl/headless/svpgdi.cxx @@ -102,7 +102,8 @@ namespace { double x1, y1, x2, y2; - cairo_stroke_extents(cr, &x1, &y1, &x2, &y2); + // less accurate, but much faster + cairo_path_extents(cr, &x1, &y1, &x2, &y2); // support B2DRange::isEmpty() if(0.0 != x1 || 0.0 != y1 || 0.0 != x2 || 0.0 != y2) |