compositor: Pass back the internal failure

In order to pass back a CAIRO_INT_STATUS_UNSUPPORTED, we need to use the
internal error surface creation functions as they do not assert on
private error codes.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-01-13 18:16:17 +00:00
parent 14c32ee1cf
commit fd34f420ec

View file

@ -172,7 +172,7 @@ create_composite_mask (const cairo_mask_compositor_t *compositor,
status = compositor->acquire (surface);
if (unlikely (status)) {
cairo_surface_destroy (surface);
return _cairo_surface_create_in_error (status);
return _cairo_int_surface_create_in_error (status);
}
if (!surface->is_clear) {
@ -239,7 +239,7 @@ error:
compositor->release (surface);
if (status != CAIRO_INT_STATUS_NOTHING_TO_DO) {
cairo_surface_destroy (surface);
surface = _cairo_surface_create_in_error (status);
surface = _cairo_int_surface_create_in_error (status);
}
return surface;
}