[cairo] _cairo_image_surface_assume_ownership_of_data

Keith Packard keithp at keithp.com
Fri Dec 17 18:15:45 PST 2004


I'm writing a simple .png -> pattern conversion function and what I want 
is for cairo to 'own' the resulting data; that way, dereferencing the 
pattern will dereference the surface and (in turn) free the image data.

There are two obvious ways to manage this -- either provide some way to 
get the image data pointer back from cairo after having it allocate the 
memory or by having cairo 'assume' ownership of the data.

There's already an internal function to perform the latter called
_cairo_image_surface_assume_ownership_of_data, there is no mechanism to 
get through the underlying pixman object to effect the former.

-keith


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20041217/e02761a7/attachment.pgp


More information about the cairo mailing list