summaryrefslogtreecommitdiff
path: root/src/cairo-debug.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-01-22 15:54:45 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-01-22 23:01:52 +0000
commit6b77567b6ef28710c7707ab82c7fa95c810152d1 (patch)
treebdeedad0ec53e1984ed1f319eccddf2ab14141dd /src/cairo-debug.c
parent6bfcf3ea55964fee1c9b73818c3bb7cdacbc4f82 (diff)
downloadcairo-6b77567b6ef28710c7707ab82c7fa95c810152d1.tar.gz
path: Compute coarse bounds upon construction.
Frequently we only need the coarse path bounds, so avoid walking over the list of points once more as we can cheaply track the extents during construction.
Diffstat (limited to 'src/cairo-debug.c')
-rw-r--r--src/cairo-debug.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cairo-debug.c b/src/cairo-debug.c
index 9160728e0..e36406975 100644
--- a/src/cairo-debug.c
+++ b/src/cairo-debug.c
@@ -221,6 +221,12 @@ _cairo_debug_print_path (FILE *stream, cairo_path_fixed_t *path)
{
cairo_status_t status;
+ printf ("path: extents=(%f, %f), (%f, %f)\n",
+ _cairo_fixed_to_double (path->extents.p1.x),
+ _cairo_fixed_to_double (path->extents.p1.y),
+ _cairo_fixed_to_double (path->extents.p2.x),
+ _cairo_fixed_to_double (path->extents.p2.y));
+
status = _cairo_path_fixed_interpret (path,
CAIRO_DIRECTION_FORWARD,
_print_move_to,