Commit graph

46 commits

Author SHA1 Message Date
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
Behdad Esfahbod
72a4a98346 [test|perf|boilerplate/Makefile.am] Add -I$(top_builddir)/src to INCLUDES
needed to find cairo-features.h when building out of tree.
2006-11-27 13:23:13 -05:00
Carl Worth
7673e3ac3f boilerplate: Add xrealloc function 2006-11-08 06:07:01 -08: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
Christian Biesinger
2ec0237051 [beos] make tests compile again 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
Christian Biesinger
2313f69066 Fix prototype warning by including cairo-test-directfb.h 2006-10-22 20:10:02 +02: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
f7068de7f7 Update .gitignore in boilerplate and test. 2006-10-12 23:47:37 -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
151e29d807 Fixed test to compile 2006-10-12 20:39:26 -07:00
Michael Emmel
29f483326f Fixed test to compile 2006-10-12 20:39:16 -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
a56b962428 Add win32 output files to gitignore 2006-09-19 12:19:21 -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
00d5a2ed48 [win32] Makefile.win32: use correct (/MD) runtime library flag everywhere
There was a bad mix of LIBCMT (the static runtime lib) and MSVCRT (the dynamic
one) before, because LIBCMT is the default.  This specifies /MD everywhere.
2006-09-09 23:29:17 -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
Vladimir Vukicevic
97f26c5235 Merge branch 'master' of git+ssh://git.cairographics.org/git/cairo into cairo-master 2006-09-09 17:09:03 -07:00
Vladimir Vukicevic
0e59041321 [win32] win32-specific Makefiles for building with MSVC
This patch adds a bunch of makefiles for building cairo with Visual C++.
gnu make is still required, and make must be run from a command prompt
that has the Visual C++ paths set up, as well as has the cygwin environment
in the path.  Run 'make -f Makefile.win32'.
2006-09-09 17:08:18 -07:00
Carl Worth
a37e667533 Use unsigned consistently to avoid compiler warning. 2006-09-09 16:04:51 -07:00
Carl Worth
195fd5cde6 boilerplate: Rename cairo_test_target_t to cairo_boilerplate_target_t 2006-09-09 16:04:51 -07:00
Behdad Esfahbod
e25add77df Add 2006-09-06 13:58:31 -04:00
Behdad Esfahbod
8c9ea020ca [Makefile] Fix typo 2006-09-06 12:45:07 -04:00
Carl Worth
d31037e421 perf: Report times not rates. Interface in integers not doubles. 2006-09-06 00:15:49 -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
739c476767 Initial hookup of Vlad's timer/alarm code 2006-08-31 10:29:52 -07:00
Carl Worth
2c16aa6304 perf: Don't measure meta-surface-backed surface types. 2006-08-31 08:53:58 -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
d52a1f762d Move test-specific stuff out of boilerplate/ and back into test/
This now gives us two separate libtool convenience libraries,
so they have to have separate names now:
libcairoboilerplate.la and libcairotest.la.
2006-08-31 01:39:06 -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
Carl Worth
a0ca4369ff Add boilerplate/README explaining its purpose 2006-08-30 22:33:53 -07:00
Carl Worth
7f4e83ceeb Split libcairotest files out from test/ and into boilerplate/
The idea here is to setup boilerplate to allow code sharing between
test/ and the upcoming perf/
2006-08-30 15:34:27 -07:00