mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-04 23:30:30 +01:00
stroke: move normal stroker to new file
Step 1 of enhancing the speed of the stroker is to segregate from the rest of the complex code. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
2e1726a05b
commit
bbe704406c
4 changed files with 1017 additions and 6 deletions
|
|
@ -164,6 +164,7 @@ cairo_sources = \
|
|||
cairo-path-in-fill.c \
|
||||
cairo-path-stroke.c \
|
||||
cairo-path-stroke-boxes.c \
|
||||
cairo-path-stroke-polygon.c \
|
||||
cairo-pattern.c \
|
||||
cairo-pen.c \
|
||||
cairo-polygon.c \
|
||||
|
|
|
|||
1002
src/cairo-path-stroke-polygon.c
Normal file
1002
src/cairo-path-stroke-polygon.c
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1274,12 +1274,12 @@ BAIL:
|
|||
}
|
||||
|
||||
cairo_status_t
|
||||
_cairo_path_fixed_stroke_to_polygon (const cairo_path_fixed_t *path,
|
||||
const cairo_stroke_style_t *stroke_style,
|
||||
const cairo_matrix_t *ctm,
|
||||
const cairo_matrix_t *ctm_inverse,
|
||||
double tolerance,
|
||||
cairo_polygon_t *polygon)
|
||||
_cairo_path_fixed_stroke_dashed_to_polygon (const cairo_path_fixed_t *path,
|
||||
const cairo_stroke_style_t *stroke_style,
|
||||
const cairo_matrix_t *ctm,
|
||||
const cairo_matrix_t *ctm_inverse,
|
||||
double tolerance,
|
||||
cairo_polygon_t *polygon)
|
||||
{
|
||||
cairo_stroker_t stroker;
|
||||
cairo_status_t status;
|
||||
|
|
|
|||
|
|
@ -1397,6 +1397,14 @@ _cairo_path_fixed_stroke_to_polygon (const cairo_path_fixed_t *path,
|
|||
double tolerance,
|
||||
cairo_polygon_t *polygon);
|
||||
|
||||
cairo_private cairo_status_t
|
||||
_cairo_path_fixed_stroke_dashed_to_polygon (const cairo_path_fixed_t *path,
|
||||
const cairo_stroke_style_t *stroke_style,
|
||||
const cairo_matrix_t *ctm,
|
||||
const cairo_matrix_t *ctm_inverse,
|
||||
double tolerance,
|
||||
cairo_polygon_t *polygon);
|
||||
|
||||
cairo_private cairo_int_status_t
|
||||
_cairo_path_fixed_stroke_rectilinear_to_boxes (const cairo_path_fixed_t *path,
|
||||
const cairo_stroke_style_t *stroke_style,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue