summaryrefslogtreecommitdiff
path: root/src/cairo-pdf-surface.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-01-23 16:05:01 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-01-23 16:05:01 +0000
commitd6dc6e8e396506d5160266dda6575ddfce671c2d (patch)
tree09957be2ec2d691bfd3a2788bfdcb3758a9dc7a3 /src/cairo-pdf-surface.c
parent6c65168dcfd969bd1d6aade3cd33f679e2314dea (diff)
parentc84730d88983623dddd6b9980d82648b7297444d (diff)
Merge branch '1.10' into tmp
Synchronize stable bug-fixes with development snapshot Conflicts: cairo-version.h src/cairo-path-bounds.c src/cairo-pdf-surface.c test/get-path-extents.c
Diffstat (limited to 'src/cairo-pdf-surface.c')
-rw-r--r--src/cairo-pdf-surface.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index c915b3f8..00cc4fbf 100644
--- a/src/cairo-pdf-surface.c
+++ b/src/cairo-pdf-surface.c
@@ -1245,6 +1245,18 @@ _cairo_pdf_surface_add_source_surface (cairo_pdf_surface_t *surface,
return status;
}
+static cairo_bool_t
+_gradient_stops_are_opaque (const cairo_gradient_pattern_t *gradient)
+{
+ unsigned int i;
+
+ for (i = 0; i < gradient->n_stops; i++)
+ if (! CAIRO_COLOR_IS_OPAQUE (&gradient->stops[i].color))
+ return FALSE;
+
+ return TRUE;
+}
+
static cairo_status_t
_cairo_pdf_surface_add_pdf_pattern (cairo_pdf_surface_t *surface,
const cairo_pattern_t *pattern,