diff options
author | Andrea Canciani <ranma42@gmail.com> | 2010-12-09 22:00:10 +0100 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2010-12-10 11:04:47 +0100 |
commit | 75f34b595aead729b6f6a7017c8790d68dfa0326 (patch) | |
tree | 35b9443f58bc7d50199ea18cb367b69a5047cdda /src/cairo-types-private.h | |
parent | df453b7aca5ad7c4b796f150c8a90e78c1b96e04 (diff) | |
download | cairo-75f34b595aead729b6f6a7017c8790d68dfa0326.tar.gz |
fill: Simplify path to polygon conversion
Using _cairo_path_fixed_interpret_flat() greatly simplifies the path
to polygon conversion (because it already converts curve_to's to
line_to's).
This commit also removes the optimization which merges two consecutive
lines if they have the same slope, because it's unlikely (since it
should already happen during path construction), it doesn't provide
better performance (at least not measurable with the currently
available cairo-traces) and bloats the code.
Diffstat (limited to 'src/cairo-types-private.h')
-rw-r--r-- | src/cairo-types-private.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/cairo-types-private.h b/src/cairo-types-private.h index b5e76c7d7..85f5d51a9 100644 --- a/src/cairo-types-private.h +++ b/src/cairo-types-private.h @@ -288,13 +288,6 @@ typedef struct _cairo_edge { typedef struct _cairo_polygon { cairo_status_t status; - cairo_point_t first_point; - cairo_point_t last_point; - cairo_point_t current_point; - cairo_slope_t current_edge; - cairo_bool_t has_current_point; - cairo_bool_t has_current_edge; - cairo_box_t extents; cairo_box_t limit; const cairo_box_t *limits; |