[cairo] Dia as a new Cairo testbed
cworth at east.isi.edu
Tue May 25 08:59:50 PDT 2004
On Tue, 25 May 2004 08:52:39 -0700, Keith Packard wrote:
> > And yet another thing, that Cairo doesn't make the copy it needs and
> > transforming/copying to it's native format itself, but instead insist on
> > keeping and free()ing _my_ data ;-)
> That's intentional -- the in-memory surfaces are designed to be exposed to
> the application so you can get the pixels back out when you want to.
> That's also why cairo insists on a fixed format -- all of the drawing code
> has to be able to directly manipulate that data.
The exposure of the data is intentional. Taking ownership sounds like a
bug to me. If the application mallocs, then the application should free.
More information about the cairo