[cairo] [PING] invalid-size-error

Jeff Muizelaar jeff at infidigm.net
Mon Dec 22 16:21:33 PST 2008


On Tue, Dec 23, 2008 at 01:23:48AM +0200, M Joonas Pihlaja wrote:
> 
> Hi Paolo,
> 
> Regarding the new CAIRO_STATUS_CONTENT_MISMATCH error, it's only 
> being generated by cairo-glitz-surface.c's create_similar method 
> when glitz can't find a suitable format for the requested 
> content.  It used to return CAIRO_STATUS_NO_MEMORY before and a 
> CONTENT_MISMATCH error does seem like an improvement, but I was 
> left wondering whether it wouldn't be better to return NULL in 
> this case so that the fallback path can create an image surface 
> instead.  For instance, this is what the xlib surface does if it 
> can't find a suitable xrender format.

I agree. I don't really understand the circumstances during which this
error would occur and how a user of the library would deal with this
happening. Either way, I think this part should be split out into a
different commit and dealt with separately.

-Jeff


More information about the cairo mailing list