summaryrefslogtreecommitdiff
path: root/src/cairo-pdf-surface-private.h
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2013-09-29 12:42:59 +0930
committerAdrian Johnson <ajohnson@redneon.com>2013-09-29 13:08:02 +0930
commit07940ecd6055e29addcdb4c14e4449a06a30bf4a (patch)
tree6b17e97a7e08c5bb79cc822aebe8ab7340558ee9 /src/cairo-pdf-surface-private.h
parentc1ac8db7e60bcec8235b09729b34154e95790534 (diff)
downloadcairo-07940ecd6055e29addcdb4c14e4449a06a30bf4a.tar.gz
pdf: combine source and mask images into single image
Since PDF stores the alpha component of images in a separate stream which can have a different resolution and encoding to the color components we can optimize the case where the source and mask are both images. If the source and mask are both images with the same extents and the source is opaque, combine the images into a single PDF image (ie the source is written the the image stream and the mask is written to the smask stream).
Diffstat (limited to 'src/cairo-pdf-surface-private.h')
-rw-r--r--src/cairo-pdf-surface-private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-pdf-surface-private.h b/src/cairo-pdf-surface-private.h
index 003294772..618ca4ede 100644
--- a/src/cairo-pdf-surface-private.h
+++ b/src/cairo-pdf-surface-private.h
@@ -73,7 +73,9 @@ typedef struct _cairo_pdf_source_surface_entry {
cairo_operator_t operator;
cairo_bool_t interpolate;
cairo_bool_t stencil_mask;
+ cairo_bool_t smask;
cairo_pdf_resource_t surface_res;
+ cairo_pdf_resource_t smask_res;
int width;
int height;
cairo_rectangle_int_t extents;