diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2012-04-08 10:57:23 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2013-09-11 21:18:45 +0930 |
commit | 8addb4798c918000eaa6f6dab138e0abb0efa946 (patch) | |
tree | 34d01723b25b03e574ef82fc9067098716b9bb19 /src/cairo-pdf-surface-private.h | |
parent | 53255625c07d8f24403f0cb1b5a4dbaac142e4da (diff) | |
download | cairo-8addb4798c918000eaa6f6dab138e0abb0efa946.tar.gz |
pdf: avoid making groups a transparency group if not required
If the group contains only a combination of clear and opaque alpha and
only OPERATOR_OVER is used in the group and to paint the group, a
transparency group is not required. This allows the pdf viewer to
replay the group in place.
Diffstat (limited to 'src/cairo-pdf-surface-private.h')
-rw-r--r-- | src/cairo-pdf-surface-private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-pdf-surface-private.h b/src/cairo-pdf-surface-private.h index d9f65d800..dfeb1aacb 100644 --- a/src/cairo-pdf-surface-private.h +++ b/src/cairo-pdf-surface-private.h @@ -70,6 +70,7 @@ typedef struct _cairo_pdf_source_surface_entry { unsigned int id; unsigned char *unique_id; unsigned long unique_id_length; + cairo_operator_t operator; cairo_bool_t interpolate; cairo_bool_t stencil_mask; cairo_pdf_resource_t surface_res; @@ -92,6 +93,7 @@ typedef struct _cairo_pdf_pattern { cairo_pattern_t *pattern; cairo_pdf_resource_t pattern_res; cairo_pdf_resource_t gstate_res; + cairo_operator_t operator; cairo_bool_t is_shading; } cairo_pdf_pattern_t; |