[cairo] [PING] invalid-size-error

M Joonas Pihlaja jpihlaja at cc.helsinki.fi
Mon Dec 22 15:23:48 PST 2008


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.

Joonas

P.S. Merry christmas and other suitable holidays to all on 
cairo-l. :)


More information about the cairo mailing list