test/random-clips: Paint clip to highlight the issues

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-09-26 13:26:33 +01:00
parent 9fe7022790
commit 303893681f
9 changed files with 17 additions and 2 deletions

View file

@ -2016,8 +2016,8 @@ REFERENCE_IMAGES = \
reference/radial-gradient.traps.argb32.ref.png \
reference/radial-gradient.traps.rgb24.ref.png \
reference/radial-outer-focus.xfail.png \
reference/random-clip.base.argb32.ref.png \
reference/random-clip.base.rgb24.ref.png \
reference/random-clip.base.argb32.xfail.png \
reference/random-clip.base.rgb24.xfail.png \
reference/random-clip.ref.png \
reference/random-clip.traps.argb32.ref.png \
reference/random-clip.traps.rgb24.ref.png \

View file

@ -150,6 +150,9 @@ draw (cairo_t *cr, int width, int height)
cairo_clip (cr);
nz_fill_stroke (cr);
cairo_set_source_rgba (cr, 1, 1, 1, 0.5);
cairo_paint (cr);
} cairo_restore (cr);
cairo_translate (cr, STEP, 0);
@ -162,6 +165,9 @@ draw (cairo_t *cr, int width, int height)
cairo_clip (cr);
nz_fill_stroke (cr);
cairo_set_source_rgba (cr, 1, 1, 1, 0.5);
cairo_paint (cr);
} cairo_restore (cr);
cairo_translate (cr, -2*STEP, STEP);
@ -174,6 +180,9 @@ draw (cairo_t *cr, int width, int height)
cairo_clip (cr);
nz_fill_stroke (cr);
cairo_set_source_rgba (cr, 1, 1, 1, 0.5);
cairo_paint (cr);
} cairo_restore (cr);
cairo_translate (cr, STEP, 0);
@ -186,6 +195,9 @@ draw (cairo_t *cr, int width, int height)
cairo_clip (cr);
nz_fill_stroke (cr);
cairo_set_source_rgba (cr, 1, 1, 1, 0.5);
cairo_paint (cr);
} cairo_restore (cr);
cairo_translate (cr, STEP, 0);
@ -204,6 +216,9 @@ draw (cairo_t *cr, int width, int height)
cairo_clip (cr);
nz_fill_stroke (cr);
cairo_set_source_rgba (cr, 1, 1, 1, 0.5);
cairo_paint (cr);
} cairo_restore (cr);
return CAIRO_TEST_SUCCESS;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 306 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 306 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 511 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 511 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 511 KiB