vcl/headless/svpgdi.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit c80eb85eda40604ff15ccd100c613c11c350ed72 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Tue Jul 9 10:36:11 2019 +0200 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Jul 15 13:57:57 2019 +0200 tdf#121793 use cairo_path_extents instead of cairo_fill_extents, which is fairly expensive for drawPolyPolygon fill operations. Shaves about 10% off the CPU time for this bug Change-Id: I04d04eed1bb204f51537f0856844b337c5a4d54c Reviewed-on: https://gerrit.libreoffice.org/75287 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> (cherry picked from commit a9de047403ccc2fa4f3b924c5e22a273c4081174) Reviewed-on: https://gerrit.libreoffice.org/75305 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx index b335d2ed630b..205c1153e02b 100644 --- a/vcl/headless/svpgdi.cxx +++ b/vcl/headless/svpgdi.cxx @@ -74,7 +74,8 @@ namespace { double x1, y1, x2, y2; - cairo_fill_extents(cr, &x1, &y1, &x2, &y2); + // this is faster than cairo_fill_extents, at the cost of some overdraw + cairo_path_extents(cr, &x1, &y1, &x2, &y2); // support B2DRange::isEmpty() if(0.0 != x1 || 0.0 != y1 || 0.0 != x2 || 0.0 != y2) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits