diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-04-24 00:50:33 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-08-13 09:58:02 +0100 |
commit | 1ccd269a3f33684bfbedcd94ad9bca56b1404143 (patch) | |
tree | 0563b9114a6ddd752142232e0ae55f3e75816a90 /src/cairo-error-private.h | |
parent | e849e7c9291d57c3749f499c7e410e7be452b455 (diff) |
skia: Update to use cairo_backend_t interface
Still hopelessly broken. Requires compiling cairo to use static linking
and then still requires manual linkage to workaround libtool. Lots of
functionality is still absent - we need to either find analogues to some
Cairo operations or implement fallbacks - but it is sufficient to
investigate how Skia functions in direct comparison with Cairo for
tessellation/rasterisation.
Caveat emptor.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-error-private.h')
-rw-r--r-- | src/cairo-error-private.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cairo-error-private.h b/src/cairo-error-private.h index 1c82ae68..a548a353 100644 --- a/src/cairo-error-private.h +++ b/src/cairo-error-private.h @@ -46,6 +46,10 @@ CAIRO_BEGIN_DECLS +/* Sure wish C had a real enum type so that this would be distinct + * from #cairo_status_t. Oh well, without that, I'll use this bogus 100 + * offset. We want to keep it fit in int8_t as the compiler may choose + * that for #cairo_status_t */ enum _cairo_int_status { CAIRO_INT_STATUS_SUCCESS = 0, @@ -97,6 +101,8 @@ enum _cairo_int_status { CAIRO_INT_STATUS_ANALYZE_RECORDING_SURFACE_PATTERN, }; +typedef enum _cairo_int_status cairo_int_status_t; + #define _cairo_status_is_error(status) \ (status != CAIRO_STATUS_SUCCESS && status < CAIRO_STATUS_LAST_STATUS) @@ -107,7 +113,7 @@ static inline cairo_status_t _cairo_public_status (cairo_int_status_t status) { assert (status <= CAIRO_INT_STATUS_LAST_STATUS); - return status; + return (cairo_status_t) status; } cairo_private cairo_status_t |