[cairo] Proposal: cairo_save_state/cairo_restore_state
Behdad Esfahbod
behdad at cs.toronto.edu
Tue Jan 24 05:24:53 PST 2006
On Tue, 24 Jan 2006, Christian Biesinger wrote:
> Behdad Esfahbod wrote:
> > You are right generally, but in this case, since saved states are
> > immutable and cairo_t objects are not threadsafe anyway (cannot
> > be used from two threads at the same time), I don't think any
> > locking is needed, and the semantics I described does the job.
>
> So can a state only be restored to the context from which it was created?
No, definitely not. That's the beauty of this cairo_state_t
approach compared to cairo_copy I believe.
--behdad
http://behdad.org/
"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
-- Dan Bern, "New American Language"
More information about the cairo
mailing list