[cairo] [PATCH]: gl: Return surface in error when creating oversized texture surfaces
chris at chris-wilson.co.uk
Mon Jul 29 14:10:07 PDT 2013
On Mon, Jul 29, 2013 at 02:02:34PM -0700, Martin Robinson wrote:
> If you are more comfortable with it, I can simply replicate the check at
> the beginning of _cairo_gl_surface_create_similar and the associated
> error surface. I think that's sufficient for what we need in WebKit.
I think returning the error surface is indeed the better approach, as it
prevents surprises. It is just that it is at odds with the ethos that
Cairo can (and should) handle infinite surfaces and coordinate systems
that chaffs. Reality is such a let down.
Chris Wilson, Intel Open Source Technology Centre
More information about the cairo