summaryrefslogtreecommitdiff
path: root/test/subsurface.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-04-28 14:26:21 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-04-30 10:16:24 +0100
commit8ded35fd69ed0bbb07359c0278071a25af66571c (patch)
treee6b44acf234b3399306240600c29f470e6045e92 /test/subsurface.c
parent5fc04bba9fa8ddda8cf7d7a97015f21a21429172 (diff)
downloadcairo-8ded35fd69ed0bbb07359c0278071a25af66571c.tar.gz
ps: Enable native encoding of subsurface patterns.
Carefully handle subsurfaces of a recording surface through the analysis and paginated surfaces so that we can generate a native pattern for the vector backends, demonstrated by the PostScript backend. Nothing remarkable, just a lot of bookkeeping to track the wrapped surface types and to apply the correct offsets when generating the subsurface pattern.
Diffstat (limited to 'test/subsurface.c')
-rw-r--r--test/subsurface.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/subsurface.c b/test/subsurface.c
index 3ccc4692d..d79d3d192 100644
--- a/test/subsurface.c
+++ b/test/subsurface.c
@@ -63,6 +63,11 @@ draw (cairo_t *cr, int width, int height)
for (i = 0; i < 5; i++) {
cairo_set_source_surface (cr, region[5-i-1], 20 * i, 20);
+ cairo_paint (cr);
+ }
+
+ for (i = 0; i < 5; i++) {
+ cairo_set_source_surface (cr, region[5-i-1], 20 * i, 40);
cairo_paint_with_alpha (cr, .5);
}
@@ -76,5 +81,5 @@ CAIRO_TEST (subsurface,
"Tests clipping of both source and destination using subsurfaces",
"subsurface", /* keywords */
NULL, /* requirements */
- 100, 40,
+ 100, 60,
NULL, draw)