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.grandin@collabora.co.uk>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user