summaryrefslogtreecommitdiff
path: root/src/cairo.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2008-05-09 15:32:57 +0200
committerBehdad Esfahbod <behdad@behdad.org>2008-05-09 15:54:13 +0200
commit08334be905edf5f557250e5946bd61391823da27 (patch)
tree418ba5fdb6eece5b4126b8b5b60caabaf704c8fa /src/cairo.c
parent674cba89fe6165d3dc9986c3d5f083867498e6c1 (diff)
[cairo-meta-surface] Add _cairo_meta_surface_get_path()
Which generates the path for each cairo operation. If there's any paint, mask, or intersect-clip-path operations in the meta-surface, UNSUPPORTED is returned. Strokes are currently tesselated to traps, then traps converted to path. Should be made to use stroke_to_path() when we implement that.
Diffstat (limited to 'src/cairo.c')
-rw-r--r--src/cairo.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cairo.c b/src/cairo.c
index 6c73e2ce..1a0da690 100644
--- a/src/cairo.c
+++ b/src/cairo.c
@@ -1827,7 +1827,8 @@ cairo_rectangle (cairo_t *cr,
cairo_close_path (cr);
}
-/* XXX: NYI
+#if 0
+/* XXX: NYI */
void
cairo_stroke_to_path (cairo_t *cr)
{
@@ -1836,11 +1837,13 @@ cairo_stroke_to_path (cairo_t *cr)
if (cr->status)
return;
+ /* The code in _cairo_meta_surface_get_path has a poorman's stroke_to_path */
+
status = _cairo_gstate_stroke_path (cr->gstate);
if (status)
_cairo_set_error (cr, status);
}
-*/
+#endif
/**
* cairo_close_path: