mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-02 09:40:26 +01:00
A few test cases purposely create fractional surface sizes which can not be natively supported by the raster backends such as GL. For these backends we need to consistent in creating a surface that is large enough to contain the test, so we need to use ceil() rather than implicit truncation to integers. A consequence of the misalignment between the Window size and the surface size (where one was using ceil and the other not) is that the first row of the cairo surface would not be visible on the output. Based on a patch by Chuanbo Wen to fix 5 test cases, such as group-unaligned. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| cairo-boilerplate-beos.cpp | ||
| cairo-boilerplate-cogl.c | ||
| cairo-boilerplate-directfb.c | ||
| cairo-boilerplate-drm.c | ||
| cairo-boilerplate-egl.c | ||
| cairo-boilerplate-getopt.c | ||
| cairo-boilerplate-getopt.h | ||
| cairo-boilerplate-glx.c | ||
| cairo-boilerplate-pdf.c | ||
| cairo-boilerplate-private.h | ||
| cairo-boilerplate-ps.c | ||
| cairo-boilerplate-qt.cpp | ||
| cairo-boilerplate-quartz.c | ||
| cairo-boilerplate-scaled-font.h | ||
| cairo-boilerplate-script.c | ||
| cairo-boilerplate-skia.c | ||
| cairo-boilerplate-svg.c | ||
| cairo-boilerplate-system.c | ||
| cairo-boilerplate-system.h | ||
| cairo-boilerplate-test-surfaces.c | ||
| cairo-boilerplate-vg.c | ||
| cairo-boilerplate-wgl.c | ||
| cairo-boilerplate-win32-printing.c | ||
| cairo-boilerplate-win32.c | ||
| cairo-boilerplate-xcb.c | ||
| cairo-boilerplate-xlib.c | ||
| cairo-boilerplate-xlib.h | ||
| cairo-boilerplate.c | ||
| cairo-boilerplate.h | ||
| check-link.c | ||
| make-cairo-boilerplate-constructors.sh | ||
| Makefile.am | ||
| Makefile.sources | ||
| Makefile.win32 | ||
| Makefile.win32.features | ||
| README | ||
This directory provides code that is common to both of cairo's tests suites: * The test suite for correctness in test/ * The test suite for performance in perf/ We call it boilerplate as it consists primarily of the boilerplate code necessary for initializing a backend in order to create a surface for that backend. The code here just might be useful for someone looking to get started writing cairo code to use a particular backend, (but there are no promises that the boilerplate code found here for any particular backend is exemplary).