diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-10-08 11:06:42 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-10-08 12:43:35 +0100 |
commit | 565c02a37e2d140a20867081eea9bb5de9999b1c (patch) | |
tree | 56ca0b6c46a59c276c85fc37081bf28a364d3f9e /src/cairo-paginated-private.h | |
parent | 0c777a3e0de0d48289432a3d66be68f8779b08a0 (diff) | |
download | cairo-565c02a37e2d140a20867081eea9bb5de9999b1c.tar.gz |
[svg] Use finer-grained fallbacks for SVG 1.2
The use of fine-grained fallbacks requires the native support of the
SOURCE operator applied to an image on the target surface. SVG 1.2
introduces the "comp-op:src" mode fulfilling this criteria - so we can
enable fine-grained fallbacks for 1.2+.
Update test/fine-grained-fallbacks to exercise this pathway in SVG 1.2 -
as SVG natively supported all the current operations within that test.
This reveals yet another librsvg bug in handling SVG 1.2.
Diffstat (limited to 'src/cairo-paginated-private.h')
-rw-r--r-- | src/cairo-paginated-private.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/cairo-paginated-private.h b/src/cairo-paginated-private.h index 0c042746d..5cb2e48b6 100644 --- a/src/cairo-paginated-private.h +++ b/src/cairo-paginated-private.h @@ -65,7 +65,7 @@ struct _cairo_paginated_surface_backend { * before the mode is changed to RENDER. */ cairo_warn cairo_int_status_t - (*set_bounding_box) (void *surface, + (*set_bounding_box) (void *surface, cairo_box_t *bbox); /* Optional. Indicates whether the page requires fallback images. @@ -73,8 +73,11 @@ struct _cairo_paginated_surface_backend { * mode is changed to RENDER. */ cairo_warn cairo_int_status_t - (*set_fallback_images_required)(void *surface, - cairo_bool_t fallbacks_required); + (*set_fallback_images_required) (void *surface, + cairo_bool_t fallbacks_required); + + cairo_bool_t + (*supports_fine_grained_fallbacks) (void *surface); }; /* A #cairo_paginated_surface_t provides a very convenient wrapper that |