mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 22:18:29 +02:00
path: Log flags
When logging path operations, also log computed flags.
This commit is contained in:
parent
e8e614db92
commit
34f1db13a1
1 changed files with 13 additions and 2 deletions
|
|
@ -749,9 +749,20 @@ _cairo_path_fixed_add (cairo_path_fixed_t *path,
|
|||
}
|
||||
len += snprintf (buf + len, sizeof (buf), "]");
|
||||
|
||||
#define STRINGIFYFLAG(x) (path->x ? #x " " : "")
|
||||
fprintf (stderr,
|
||||
"_cairo_path_fixed_add (%s, %s)\n",
|
||||
op_str[(int) op], buf);
|
||||
"_cairo_path_fixed_add (%s, %s) [%s%s%s%s%s%s%s%s]\n",
|
||||
op_str[(int) op], buf,
|
||||
STRINGIFYFLAG(has_current_point),
|
||||
STRINGIFYFLAG(needs_move_to),
|
||||
STRINGIFYFLAG(has_extents),
|
||||
STRINGIFYFLAG(has_curve_to),
|
||||
STRINGIFYFLAG(stroke_is_rectilinear),
|
||||
STRINGIFYFLAG(fill_is_rectilinear),
|
||||
STRINGIFYFLAG(fill_is_empty),
|
||||
STRINGIFYFLAG(fill_maybe_region)
|
||||
);
|
||||
#undef STRINGIFYFLAG
|
||||
}
|
||||
|
||||
_cairo_path_buf_add_op (buf, op);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue