| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680 |
- /*
- * Copyright 2010 Intel Corporation
- *
- * Permission is hereby granted, free of charge, to any person
- * obtaining a copy of this software and associated documentation
- * files (the "Software"), to deal in the Software without
- * restriction, including without limitation the rights to use, copy,
- * modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * Author: Chris Wilson <chris@chris-wilson.co.uk>
- */
- #include "cairo-test.h"
- /* Test the sampling stratagems of the rasterisers by creating pixels
- * containing minute holes and seeing how close to the expected
- * coverage each rasteriser approaches.
- */
- #define SIZE 64
- #include "../src/cairo-fixed-type-private.h"
- #define SAMPLE (1 << CAIRO_FIXED_FRAC_BITS)
- static uint32_t state;
- static uint32_t
- hars_petruska_f54_1_random (void)
- {
- #define rol(x,k) ((x << k) | (x >> (32-k)))
- return state = (state ^ rol (state, 5) ^ rol (state, 24)) + 0x37798849;
- #undef rol
- }
- static double
- uniform_random (void)
- {
- return hars_petruska_f54_1_random() / (double) UINT32_MAX;
- }
- /* coverage is given in [0,sample] */
- static void
- compute_occupancy (uint8_t *occupancy, int coverage, int sample)
- {
- int i, c;
- if (coverage < sample/2) {
- memset (occupancy, 0, sample);
- if (coverage == 0)
- return;
- for (i = c = 0; i < sample; i++) {
- if ((sample - i) * uniform_random() < coverage - c) {
- occupancy[i] = 0xff;
- if (++c == coverage)
- return;
- }
- }
- } else {
- coverage = sample - coverage;
- memset (occupancy, 0xff, sample);
- if (coverage == 0)
- return;
- for (i = c = 0; i < sample; i++) {
- if ((sample - i) * uniform_random() < coverage - c) {
- occupancy[i] = 0;
- if (++c == coverage)
- return;
- }
- }
- }
- }
- static cairo_test_status_t
- reference (cairo_t *cr, int width, int height)
- {
- int i;
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
- cairo_paint (cr);
- for (i = 0; i < SIZE*SIZE; i++) {
- cairo_set_source_rgba (cr, 1., 1., 1.,
- i / (double) (SIZE * SIZE));
- cairo_rectangle (cr, i % SIZE, i / SIZE, 1, 1);
- cairo_fill (cr);
- }
- return CAIRO_STATUS_SUCCESS;
- }
- static cairo_test_status_t
- three_quarter_reference (cairo_t *cr, int width, int height)
- {
- int i;
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
- cairo_paint (cr);
- for (i = 0; i < SIZE*SIZE; i++) {
- cairo_set_source_rgba (cr, 1., 1., 1.,
- .75 * i / (double) (SIZE * SIZE));
- cairo_rectangle (cr, i % SIZE, i / SIZE, 1, 1);
- cairo_fill (cr);
- }
- return CAIRO_STATUS_SUCCESS;
- }
- static cairo_test_status_t
- half_reference (cairo_t *cr, int width, int height)
- {
- int i;
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
- cairo_paint (cr);
- for (i = 0; i < SIZE*SIZE; i++) {
- cairo_set_source_rgba (cr, 1., 1., 1.,
- .5 * i / (double) (SIZE * SIZE));
- cairo_rectangle (cr, i % SIZE, i / SIZE, 1, 1);
- cairo_fill (cr);
- }
- return CAIRO_STATUS_SUCCESS;
- }
- static cairo_test_status_t
- rectangles (cairo_t *cr, int width, int height)
- {
- uint8_t *occupancy;
- int i, j, channel;
- state = 0x12345678;
- occupancy = xmalloc (SAMPLE*SAMPLE);
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
- cairo_paint (cr);
- cairo_set_operator (cr, CAIRO_OPERATOR_ADD);
- for (channel = 0; channel < 3; channel++) {
- switch (channel) {
- default:
- case 0: cairo_set_source_rgb (cr, 1.0, 0.0, 0.0); break;
- case 1: cairo_set_source_rgb (cr, 0.0, 1.0, 0.0); break;
- case 2: cairo_set_source_rgb (cr, 0.0, 0.0, 1.0); break;
- }
- for (i = 0; i < SIZE*SIZE; i++) {
- int xs, ys;
- compute_occupancy (occupancy, SAMPLE*SAMPLE * i / (SIZE * SIZE), SAMPLE*SAMPLE);
- xs = i % SIZE * SAMPLE;
- ys = i / SIZE * SAMPLE;
- for (j = 0; j < SAMPLE*SAMPLE; j++) {
- if (occupancy[j]) {
- cairo_rectangle (cr,
- (j % SAMPLE + xs) / (double) SAMPLE,
- (j / SAMPLE + ys) / (double) SAMPLE,
- 1 / (double) SAMPLE,
- 1 / (double) SAMPLE);
- }
- }
- cairo_fill (cr);
- }
- }
- free (occupancy);
- return CAIRO_TEST_SUCCESS;
- }
- static cairo_test_status_t
- intersecting_quads (cairo_t *cr, int width, int height)
- {
- uint8_t *occupancy;
- int i, j, channel;
- state = 0x12345678;
- occupancy = xmalloc (SAMPLE*SAMPLE);
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
- cairo_paint (cr);
- cairo_set_operator (cr, CAIRO_OPERATOR_ADD);
- for (channel = 0; channel < 3; channel++) {
- switch (channel) {
- default:
- case 0: cairo_set_source_rgb (cr, 1.0, 0.0, 0.0); break;
- case 1: cairo_set_source_rgb (cr, 0.0, 1.0, 0.0); break;
- case 2: cairo_set_source_rgb (cr, 0.0, 0.0, 1.0); break;
- }
- for (i = 0; i < SIZE*SIZE; i++) {
- int xs, ys;
- compute_occupancy (occupancy, SAMPLE*SAMPLE * i / (SIZE * SIZE), SAMPLE*SAMPLE);
- xs = i % SIZE * SAMPLE;
- ys = i / SIZE * SAMPLE;
- for (j = 0; j < SAMPLE*SAMPLE; j++) {
- if (occupancy[j]) {
- cairo_move_to (cr,
- (j % SAMPLE + xs) / (double) SAMPLE,
- (j / SAMPLE + ys) / (double) SAMPLE);
- cairo_rel_line_to (cr, 1 / (double) SAMPLE, 1 / (double) SAMPLE);
- cairo_rel_line_to (cr, 0, -1 / (double) SAMPLE);
- cairo_rel_line_to (cr, -1 / (double) SAMPLE, 1 / (double) SAMPLE);
- cairo_close_path (cr);
- }
- }
- cairo_fill (cr);
- }
- }
- free (occupancy);
- return CAIRO_TEST_SUCCESS;
- }
- static cairo_test_status_t
- half_triangles (cairo_t *cr, int width, int height)
- {
- uint8_t *occupancy;
- int i, j, channel;
- state = 0x12345678;
- occupancy = xmalloc (SAMPLE*SAMPLE);
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
- cairo_paint (cr);
- cairo_set_operator (cr, CAIRO_OPERATOR_ADD);
- for (channel = 0; channel < 3; channel++) {
- switch (channel) {
- default:
- case 0: cairo_set_source_rgb (cr, 1.0, 0.0, 0.0); break;
- case 1: cairo_set_source_rgb (cr, 0.0, 1.0, 0.0); break;
- case 2: cairo_set_source_rgb (cr, 0.0, 0.0, 1.0); break;
- }
- for (i = 0; i < SIZE*SIZE; i++) {
- int xs, ys;
- compute_occupancy (occupancy, SAMPLE*SAMPLE * i / (SIZE * SIZE), SAMPLE*SAMPLE);
- xs = i % SIZE * SAMPLE;
- ys = i / SIZE * SAMPLE;
- for (j = 0; j < SAMPLE*SAMPLE; j++) {
- if (occupancy[j]) {
- int x = j % SAMPLE + xs;
- int y = j / SAMPLE + ys;
- cairo_move_to (cr, x / (double) SAMPLE, y / (double) SAMPLE);
- cairo_line_to (cr, (x+1) / (double) SAMPLE, (y+1) / (double) SAMPLE);
- cairo_line_to (cr, (x+1) / (double) SAMPLE, y / (double) SAMPLE);
- cairo_close_path (cr);
- }
- }
- cairo_fill (cr);
- }
- }
- free (occupancy);
- return CAIRO_TEST_SUCCESS;
- }
- static cairo_test_status_t
- overlap_half_triangles (cairo_t *cr, int width, int height)
- {
- uint8_t *occupancy;
- int i, j, channel;
- state = 0x12345678;
- occupancy = xmalloc (SAMPLE*SAMPLE);
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
- cairo_paint (cr);
- cairo_set_operator (cr, CAIRO_OPERATOR_ADD);
- for (channel = 0; channel < 3; channel++) {
- switch (channel) {
- default:
- case 0: cairo_set_source_rgb (cr, 1.0, 0.0, 0.0); break;
- case 1: cairo_set_source_rgb (cr, 0.0, 1.0, 0.0); break;
- case 2: cairo_set_source_rgb (cr, 0.0, 0.0, 1.0); break;
- }
- for (i = 0; i < SIZE*SIZE; i++) {
- int xs, ys;
- compute_occupancy (occupancy, SAMPLE/2*SAMPLE/2 * i / (SIZE * SIZE), SAMPLE/2*SAMPLE/2);
- xs = i % SIZE * SAMPLE;
- ys = i / SIZE * SAMPLE;
- for (j = 0; j < SAMPLE/2*SAMPLE/2; j++) {
- if (occupancy[j]) {
- int x = 2 * (j % (SAMPLE/2)) + xs;
- int y = 2 * (j / (SAMPLE/2)) + ys;
- /* Add a 4-tile composed of two overlapping triangles.
- * .__.__.
- * |\ /|
- * | \ / |
- * . x |
- * | / \ |
- * |/ \|
- * . .
- *
- * Coverage should be computable as 50% (due to counter-winding).
- */
- cairo_move_to (cr, (x) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_line_to (cr, (x) / (double) SAMPLE, (y+2) / (double) SAMPLE);
- cairo_line_to (cr, (x+2) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_close_path (cr);
- cairo_move_to (cr, (x) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_line_to (cr, (x+2) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_line_to (cr, (x+2) / (double) SAMPLE, (y+2) / (double) SAMPLE);
- cairo_close_path (cr);
- }
- }
- cairo_fill (cr);
- }
- }
- free (occupancy);
- return CAIRO_TEST_SUCCESS;
- }
- static cairo_test_status_t
- overlap_half_triangles_eo (cairo_t *cr, int width, int height)
- {
- uint8_t *occupancy;
- int i, j, channel;
- state = 0x12345678;
- occupancy = xmalloc (SAMPLE*SAMPLE);
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
- cairo_paint (cr);
- cairo_set_fill_rule (cr, CAIRO_FILL_RULE_EVEN_ODD);
- cairo_set_operator (cr, CAIRO_OPERATOR_ADD);
- for (channel = 0; channel < 3; channel++) {
- switch (channel) {
- default:
- case 0: cairo_set_source_rgb (cr, 1.0, 0.0, 0.0); break;
- case 1: cairo_set_source_rgb (cr, 0.0, 1.0, 0.0); break;
- case 2: cairo_set_source_rgb (cr, 0.0, 0.0, 1.0); break;
- }
- for (i = 0; i < SIZE*SIZE; i++) {
- int xs, ys;
- compute_occupancy (occupancy, SAMPLE/2*SAMPLE/2 * i / (SIZE * SIZE), SAMPLE/2*SAMPLE/2);
- xs = i % SIZE * SAMPLE;
- ys = i / SIZE * SAMPLE;
- for (j = 0; j < SAMPLE/2*SAMPLE/2; j++) {
- if (occupancy[j]) {
- int x = 2 * (j % (SAMPLE/2)) + xs;
- int y = 2 * (j / (SAMPLE/2)) + ys;
- /* Add a 4-tile composed of two overlapping triangles.
- * .__.__.
- * |\ /|
- * | \ / |
- * . x |
- * | / \ |
- * |/ \|
- * . .
- *
- * Coverage should be computable as 50%, due to even-odd fill rule.
- */
- cairo_move_to (cr, (x) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_line_to (cr, (x) / (double) SAMPLE, (y+2) / (double) SAMPLE);
- cairo_line_to (cr, (x+2) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_close_path (cr);
- cairo_move_to (cr, (x) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_line_to (cr, (x+2) / (double) SAMPLE, (y+2) / (double) SAMPLE);
- cairo_line_to (cr, (x+2) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_close_path (cr);
- }
- }
- cairo_fill (cr);
- }
- }
- free (occupancy);
- return CAIRO_TEST_SUCCESS;
- }
- static cairo_test_status_t
- overlap_three_quarter_triangles (cairo_t *cr, int width, int height)
- {
- uint8_t *occupancy;
- int i, j, channel;
- state = 0x12345678;
- occupancy = xmalloc (SAMPLE*SAMPLE);
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
- cairo_paint (cr);
- cairo_set_operator (cr, CAIRO_OPERATOR_ADD);
- for (channel = 0; channel < 3; channel++) {
- switch (channel) {
- default:
- case 0: cairo_set_source_rgb (cr, 1.0, 0.0, 0.0); break;
- case 1: cairo_set_source_rgb (cr, 0.0, 1.0, 0.0); break;
- case 2: cairo_set_source_rgb (cr, 0.0, 0.0, 1.0); break;
- }
- for (i = 0; i < SIZE*SIZE; i++) {
- int xs, ys;
- compute_occupancy (occupancy, SAMPLE/2*SAMPLE/2 * i / (SIZE * SIZE), SAMPLE/2*SAMPLE/2);
- xs = i % SIZE * SAMPLE;
- ys = i / SIZE * SAMPLE;
- for (j = 0; j < SAMPLE/2*SAMPLE/2; j++) {
- if (occupancy[j]) {
- int x = 2 * (j % (SAMPLE/2)) + xs;
- int y = 2 * (j / (SAMPLE/2)) + ys;
- /* Add a 4-tile composed of two overlapping triangles.
- * .__.__.
- * |\ /|
- * | \ / |
- * . x |
- * | / \ |
- * |/ \|
- * . .
- *
- * Coverage should be computable as 75%.
- */
- cairo_move_to (cr, (x) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_line_to (cr, (x) / (double) SAMPLE, (y+2) / (double) SAMPLE);
- cairo_line_to (cr, (x+2) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_close_path (cr);
- cairo_move_to (cr, (x) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_line_to (cr, (x+2) / (double) SAMPLE, (y+2) / (double) SAMPLE);
- cairo_line_to (cr, (x+2) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_close_path (cr);
- }
- }
- cairo_fill (cr);
- }
- }
- free (occupancy);
- return CAIRO_TEST_SUCCESS;
- }
- static cairo_test_status_t
- triangles (cairo_t *cr, int width, int height)
- {
- uint8_t *occupancy;
- int i, j, channel;
- state = 0x12345678;
- occupancy = xmalloc (SAMPLE*SAMPLE);
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
- cairo_paint (cr);
- cairo_set_operator (cr, CAIRO_OPERATOR_ADD);
- for (channel = 0; channel < 3; channel++) {
- switch (channel) {
- default:
- case 0: cairo_set_source_rgb (cr, 1.0, 0.0, 0.0); break;
- case 1: cairo_set_source_rgb (cr, 0.0, 1.0, 0.0); break;
- case 2: cairo_set_source_rgb (cr, 0.0, 0.0, 1.0); break;
- }
- for (i = 0; i < SIZE*SIZE; i++) {
- int xs, ys;
- compute_occupancy (occupancy, SAMPLE*SAMPLE * i / (SIZE * SIZE), SAMPLE*SAMPLE);
- xs = i % SIZE * SAMPLE;
- ys = i / SIZE * SAMPLE;
- for (j = 0; j < SAMPLE*SAMPLE; j++) {
- if (occupancy[j]) {
- /* Add a tile composed of two non-overlapping triangles.
- * .__.
- * | /|
- * |/ |
- * .--.
- */
- int x = j % SAMPLE + xs;
- int y = j / SAMPLE + ys;
- /* top-left triangle */
- cairo_move_to (cr, (x) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_line_to (cr, (x+1) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_line_to (cr, (x) / (double) SAMPLE, (y+1) / (double) SAMPLE);
- cairo_close_path (cr);
- /* bottom-right triangle */
- cairo_move_to (cr, (x) / (double) SAMPLE, (y+1) / (double) SAMPLE);
- cairo_line_to (cr, (x+1) / (double) SAMPLE, (y+1) / (double) SAMPLE);
- cairo_line_to (cr, (x+1) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_close_path (cr);
- }
- }
- cairo_fill (cr);
- }
- }
- free (occupancy);
- return CAIRO_TEST_SUCCESS;
- }
- static cairo_test_status_t
- intersecting_triangles (cairo_t *cr, int width, int height)
- {
- uint8_t *occupancy;
- int i, j, channel;
- state = 0x12345678;
- occupancy = xmalloc (SAMPLE*SAMPLE);
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
- cairo_paint (cr);
- cairo_set_operator (cr, CAIRO_OPERATOR_ADD);
- for (channel = 0; channel < 3; channel++) {
- switch (channel) {
- default:
- case 0: cairo_set_source_rgb (cr, 1.0, 0.0, 0.0); break;
- case 1: cairo_set_source_rgb (cr, 0.0, 1.0, 0.0); break;
- case 2: cairo_set_source_rgb (cr, 0.0, 0.0, 1.0); break;
- }
- for (i = 0; i < SIZE*SIZE; i++) {
- int xs, ys;
- compute_occupancy (occupancy, SAMPLE*SAMPLE * i / (SIZE * SIZE), SAMPLE*SAMPLE);
- xs = i % SIZE * SAMPLE;
- ys = i / SIZE * SAMPLE;
- for (j = 0; j < SAMPLE*SAMPLE; j++) {
- if (occupancy[j]) {
- /* Add 2 overlapping tiles in a single cell, each composed
- * of two non-overlapping triangles.
- * .--. .--.
- * | /| |\ |
- * |/ | + | \|
- * .--. .--.
- */
- int x = j % SAMPLE + xs;
- int y = j / SAMPLE + ys;
- /* first pair of triangles, diagonal bottom-left to top-right */
- cairo_move_to (cr, (x) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_line_to (cr, (x+1) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_line_to (cr, (x) / (double) SAMPLE, (y+1) / (double) SAMPLE);
- cairo_close_path (cr);
- cairo_move_to (cr, (x) / (double) SAMPLE, (y+1) / (double) SAMPLE);
- cairo_line_to (cr, (x+1) / (double) SAMPLE, (y+1) / (double) SAMPLE);
- cairo_line_to (cr, (x+1) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_close_path (cr);
- /* second pair of triangles, diagonal top-left to bottom-right */
- cairo_move_to (cr, (x) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_line_to (cr, (x+1) / (double) SAMPLE, (y+1) / (double) SAMPLE);
- cairo_line_to (cr, (x+1) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_close_path (cr);
- cairo_move_to (cr, (x) / (double) SAMPLE, (y) / (double) SAMPLE);
- cairo_line_to (cr, (x+1) / (double) SAMPLE, (y+1) / (double) SAMPLE);
- cairo_line_to (cr, (x) / (double) SAMPLE, (y+1) / (double) SAMPLE);
- cairo_close_path (cr);
- }
- }
- cairo_fill (cr);
- }
- }
- free (occupancy);
- return CAIRO_TEST_SUCCESS;
- }
- CAIRO_TEST (partial_coverage_rectangles,
- "Check the fidelity of the rasterisation.",
- "coverage, raster", /* keywords */
- "target=raster slow", /* requirements */
- SIZE, SIZE,
- NULL, rectangles)
- CAIRO_TEST (partial_coverage_intersecting_quads,
- "Check the fidelity of the rasterisation.",
- "coverage, raster", /* keywords */
- "target=raster slow", /* requirements */
- SIZE, SIZE,
- NULL, intersecting_quads)
- CAIRO_TEST (partial_coverage_intersecting_triangles,
- "Check the fidelity of the rasterisation.",
- "coverage, raster", /* keywords */
- "target=raster slow", /* requirements */
- SIZE, SIZE,
- NULL, intersecting_triangles)
- CAIRO_TEST (partial_coverage_triangles,
- "Check the fidelity of the rasterisation.",
- "coverage, raster", /* keywords */
- "target=raster slow", /* requirements */
- SIZE, SIZE,
- NULL, triangles)
- CAIRO_TEST (partial_coverage_overlap_three_quarter_triangles,
- "Check the fidelity of the rasterisation.",
- "coverage, raster", /* keywords */
- "target=raster slow", /* requirements */
- SIZE, SIZE,
- NULL, overlap_three_quarter_triangles)
- CAIRO_TEST (partial_coverage_overlap_half_triangles_eo,
- "Check the fidelity of the rasterisation.",
- "coverage, raster", /* keywords */
- "target=raster slow", /* requirements */
- SIZE, SIZE,
- NULL, overlap_half_triangles_eo)
- CAIRO_TEST (partial_coverage_overlap_half_triangles,
- "Check the fidelity of the rasterisation.",
- "coverage, raster", /* keywords */
- "target=raster slow", /* requirements */
- SIZE, SIZE,
- NULL, overlap_half_triangles)
- CAIRO_TEST (partial_coverage_half_triangles,
- "Check the fidelity of the rasterisation.",
- "coverage, raster", /* keywords */
- "target=raster slow", /* requirements */
- SIZE, SIZE,
- NULL, half_triangles)
- CAIRO_TEST (partial_coverage_reference,
- "Check the fidelity of this test.",
- "coverage, raster", /* keywords */
- "target=raster", /* requirements */
- SIZE, SIZE,
- NULL, reference)
- CAIRO_TEST (partial_coverage_three_quarter_reference,
- "Check the fidelity of this test.",
- "coverage, raster", /* keywords */
- "target=raster", /* requirements */
- SIZE, SIZE,
- NULL, three_quarter_reference)
- CAIRO_TEST (partial_coverage_half_reference,
- "Check the fidelity of this test.",
- "coverage, raster", /* keywords */
- "target=raster", /* requirements */
- SIZE, SIZE,
- NULL, half_reference)
|