[cairo] API proposal: cairo_save/restore_path
behdad at behdad.org
Mon Apr 16 13:32:32 PDT 2007
I want to propose cairo_save_path() and cairo_restore_path() for
I'm not sure if this is a necessary feature, but it occured to me
that when implementing a Postscript viewer on top of cairo, it's
useful to be able to save/restore the path in a cairo_t, since PS
keeps the path in its gstate.
The patch to implement this is pretty simple. Without this API,
users need to use cairo_copy_path()/cairo_append_path(). That is
rather expensive and wasteful since it converts from device space
back to user space and into device space again...
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
More information about the cairo