diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2011-09-04 20:43:07 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2011-09-05 21:18:36 +0930 |
commit | 37a22669d80cf970dab3aa3e7a8ec673c1462342 (patch) | |
tree | 3216594faefacb2152d7ac8548f750ee2fd19e63 /src/cairo-types-private.h | |
parent | 6ad63946d4374ad30ef7fbdad421d85bfd8da423 (diff) | |
download | cairo-37a22669d80cf970dab3aa3e7a8ec673c1462342.tar.gz |
pdf: use ink extents for smask bbox
There are some inkscape bugs reporting very slow rendering of inkscape
generated PDFs (inkscape uses cairo for PDF output). These bugs are
caused by cairo specifying a page sized bounding box in XObjects and
Patterns. PDF renderers usually use the BBox as the image size when
compositing. As PDFs generated from SVG tends to use a lot of XObjects
and Patterns this can lead to very long rendering times.
These three patches tighten up all the BBoxes in PDF output.
Diffstat (limited to 'src/cairo-types-private.h')
-rw-r--r-- | src/cairo-types-private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cairo-types-private.h b/src/cairo-types-private.h index 966cd8fb8..f18a20ea3 100644 --- a/src/cairo-types-private.h +++ b/src/cairo-types-private.h @@ -271,6 +271,11 @@ typedef struct _cairo_distance_double { double dy; } cairo_distance_double_t; +typedef struct _cairo_box_double { + cairo_point_double_t p1; + cairo_point_double_t p2; +} cairo_box_double_t; + typedef struct _cairo_line { cairo_point_t p1; cairo_point_t p2; |