mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 06:28:01 +02:00
path: Tighten curve_to extents
The additional time spent in the computation of tight extents for the curve_to operation doesn't seem to be significant, but it makes the extents computations faster and the approximations more accurate.
This commit is contained in:
parent
0655198301
commit
958c56e2b4
1 changed files with 2 additions and 4 deletions
|
|
@ -609,10 +609,8 @@ _cairo_path_fixed_curve_to (cairo_path_fixed_t *path,
|
|||
point[1].x = x1; point[1].y = y1;
|
||||
point[2].x = x2; point[2].y = y2;
|
||||
|
||||
/* coarse bounds */
|
||||
_cairo_box_add_point (&path->extents, &point[0]);
|
||||
_cairo_box_add_point (&path->extents, &point[1]);
|
||||
_cairo_box_add_point (&path->extents, &point[2]);
|
||||
_cairo_box_add_curve_to (&path->extents, &path->current_point,
|
||||
&point[0], &point[1], &point[2]);
|
||||
|
||||
path->current_point = point[2];
|
||||
path->has_curve_to = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue