Behdad Esfahbod
d6dc4f9783
[boilerplate] Add a boolean is_vector to boilerplate target type
...
This is used to move the skip-these-tests-for-vector code into
cairo-test which it belongs.
2007-04-20 00:52:02 -04:00
Behdad Esfahbod
be0320c4f8
[boilerplate] Properly namespace boilerplate methods
...
in preparation for ripping them into per-backend files.
2007-04-20 00:52:02 -04:00
Behdad Esfahbod
9b660a3d54
[boilerplate] Strip xlib boilerplate into cairo-boilerplate-xlib*
2007-04-20 00:52:02 -04:00
Behdad Esfahbod
d945f64346
[boilerplate] Move includes around
2007-04-20 00:52:01 -04:00
Behdad Esfahbod
0130cca692
[boilerplate] Rename test-directfb to boilerplate-directfb
2007-04-20 00:52:01 -04:00
Behdad Esfahbod
fb2c0daa09
[boilerplate] Rename test-beos to boilerplate-beos
2007-04-20 00:52:01 -04:00
Behdad Esfahbod
01760286b3
[boilerplate] Rename quartz-boilerplate to boilerplate-quartz
2007-04-20 00:52:01 -04:00
Behdad Esfahbod
157074c794
[boilerplate] Add cairo_boilerplate_get/free_targets
...
This means, test and perf suites now share the same target handling
code, including parsing CAIRO_TEST_TARGET.
2007-04-18 19:46:30 -04:00
Behdad Esfahbod
47c02a6bd6
[boilerplate] s/_cairo_test_content_name/cairo_boilerplate_content_name/g
2007-04-18 19:15:16 -04:00
Carl Worth
fcf49a5613
boilerplate: Cleanup conditional compilation ofcairo-quartz-boilerplate.c
...
It's much nicer to use automake to conditionally compile a file,
instead of always compiling it and conditionally having the compiler
see an empty file.
2007-04-13 12:02:11 -07:00
Carl Worth
054c28a09d
boilerplate: Add error checking for cairo_surface_write_to_png
2007-04-11 02:50:49 -07:00
Carl Worth
0a54ca2d23
boilerplate: Add error checking for cairo_surface_set_user_data
2007-04-11 02:50:42 -07:00
Chris Wilson
274c20c27a
cairo-boilerplate - handle failure to set user data
...
After failing to set the user data on a surface, clean up and return NULL.
2007-04-09 15:02:17 +01:00
Chris Wilson
b95577a931
Protect boilerplate_xlib_synchronize from alloc failure.
...
Don't call XDestroyImage on a NULL image.
2007-04-06 12:18:49 -07:00
Brian Ewins
3646839060
[boilerplate] split quartz out to avoid symbol clash.
...
Quartz and Xlib both define Picture and Cursor, and clashed in
cairo-boilerplate.c. Splitting quartz out allows a single mac
build with --enable-quartz --enable-atsui.
2007-04-04 01:16:30 +01:00
Behdad Esfahbod
cd78da36f6
[test-surfaces] Prefix public symbols with _cairo
2007-03-13 05:14:19 -04:00
Behdad Esfahbod
1dd647e265
[TODO] Add/remove items
2007-02-28 16:59:47 -05:00
Behdad Esfahbod
5f5afac8f4
[boilerplate/test-paginated] Issue a show_page before writing buffer
...
This is needed since cairo-test does not issue a show_page now, and
the one coming from paginated layer is too late (around finish).
The way we force the show_page is kinda funny. That is, we create
a temporary cairo_t and call cairo_show_page() on it. But works.
2007-02-28 14:32:11 -05:00
Vladimir Vukicevic
4c201723ce
[quartz] Rename nquartz to quartz
2007-02-20 12:15:35 -08:00
M Joonas Pihlaja
c13a1a2ed0
Replace point sampling in the fill-degenerate-sort-order with rendering.
...
Clean up the test to not even check the ps backend as per:
http://lists.freedesktop.org/archives/cairo/2006-December/008806.html
2006-12-07 02:31:10 +02:00
Jamey Sharp
504ea250f7
XCB/perf: implement boilerplate_xcb_synchronize for fair performance tests.
...
It sure was nice when some tests showed XCB to be 1300 times faster
than Xlib though...
2006-10-29 13:50:04 -08:00
Christian Biesinger
a34ba73136
[beos] Allow a pixel error of 1 for BeOS tests
...
That allows us to delete the BeOS-specific reference images.
2006-10-27 23:51:56 +02:00
Carl Worth
61bf9b009b
Make xlib and xcb backends tolerant of single-bit errors in the test suite output.
2006-10-26 15:52:21 -07:00
Ian Osgood
968ceeec1d
XCB: find_standard_format using wrong enumeration.
...
Requires latest xcb/util/renderutil library from git.
2006-10-18 08:14:55 -07:00
Carl Worth
71037f3612
Rename wait_for_rendering to syncrhonize
...
We're not using this call both before and after rendering
so the old name just didn't make sense anymore.
2006-10-16 09:07:47 -07:00
Jamey Sharp
2d30e58ccd
XCB: update cairo-boilerplate to test for an error connection rather than NULL.
2006-10-12 23:47:37 -07:00
Michael Emmel
02e7b892bc
Merge branch 'master' of ssh+git://git.cairographics.org/git/cairo
2006-10-12 20:40:11 -07:00
Michael Emmel
e521562ebf
Fixed directfb test code
2006-10-12 20:38:47 -07:00
Ian Osgood
339fe5c7b0
Replace static fn with xcb-renderutil library fn.
2006-10-11 21:52:49 -07:00
Ian Osgood
7d0ff885df
Update XCB names for XCB 1.0 RC2 release.
...
New names are in line with cairo naming standards.
XIDs are now typedefs not structs.
xcb_generate_id replaces *_new functions.
Also fixed all warnings (one const, new enums in switch statements).
2006-10-11 21:52:49 -07:00
Vladimir Vukicevic
3623da441a
[nquartz] Initial commit of native quartz surface
...
Inital commit of Native Quartz surface. The main missing functionality
is mask() support (which is just a noop right now, except for the simple
solid-alpha case).
2006-09-13 14:48:40 -07:00
Carl Worth
cb6aed0a81
perf: Make xlib testing wait for the X server to finish rendering.
...
We do this by adding a new cairo_perf_timer_set_finalize function and
in the case of the xlib backend passing a callback to that function
that does a 1x1 XGetImage.
2006-09-11 10:59:38 -07:00
Vladimir Vukicevic
d3076a1843
Merge branch 'master' of git+ssh://git.cairographics.org/git/cairo into cairo-master
2006-09-09 18:57:57 -07:00
Vladimir Vukicevic
dfe3e20a4a
[win32] Fix boilerplate for win32 surfaces to use new _with_dib function
...
Create test surfaces for win32 using _with_dib instead of creating the
dib locally; also test CONTENT_COLOR and CONTENT_COLOR_ALPHA.
2006-09-09 18:56:58 -07:00
Carl Worth
d3a5d90665
boilerplate-xlib: New perf-specific surface creation for xlib backend.
...
When testing the xlib backend do different things for TEST vs. PERF:
TEST: Always use pixmap, call Xsynchronize.
PERF: Use pixmap for COLOR_ALPHA and DefaultVisual window for COLOR.
2006-09-09 17:32:50 -07:00
Carl Worth
aeca64f6cd
boilerplate: Allow targets to distinguish between test and perf.
...
Add a new cairo_boilerplate_mode_t so that the boilerplate targets can
do slightly different things if being tested for correctness vs. being
run for performance.
2006-09-09 17:32:50 -07:00
Carl Worth
195fd5cde6
boilerplate: Rename cairo_test_target_t to cairo_boilerplate_target_t
2006-09-09 16:04:51 -07:00
Carl Worth
bcb7863f00
Move target tolerance to cairo_test_target structure (should let single-pixel SVG errors pass)
...
Previously we were setting the target tolerance based on the surface
type. But that doesn't work as multiple backends will provide a surface
of type meta. So instead we put the tolerance as a value in the
cairo_test_target data structure.
With this change, some single-pixel errors of 1 in the SVG backend
should now be ignored.
2006-09-05 22:25:21 -07:00
Benjamin Otte
2ebb9af434
boilerplate: Fix compilation for glitz.
2006-08-31 13:30:10 -07:00
Carl Worth
4915e0baa7
boilerplate: Fix missing include of config.h which was preventing many backends from being tested
2006-08-31 08:36:29 -07:00
Carl Worth
9547521885
boilerplate: Remove custom read/write-png code in favor of using cairo surfaces
...
Also combine image_diff and image_diff_flattened into a single function
2006-08-31 01:09:39 -07:00
Carl Worth
37ce705890
Separate the sharable stuff out of cairo-test.c into cairo-boilerplate.c
2006-08-30 22:57:36 -07:00