mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-01 03:18:00 +02:00
Written by Vladimir Vukicevic to enable integration with Qt embedded devices, this backend allows cairo code to target QPainter, and use it as a source for other cairo backends. This imports the sources from mozilla-central: http://mxr.mozilla.org/mozilla-central/find?text=&kind=text&string=cairo-qpainter renames them from cairo-qpainter to cairo-qt, and integrates the patch by Oleg Romashin: https://bugs.freedesktop.org/attachment.cgi?id=18953 And then attempts to restore 'make check' to full functionality. However: - C++ does not play well with the PLT symbol hiding, and leaks into the global namespace. 'make check' fails at check-plt.sh - Qt embeds a GUI into QApplication which it requires to construct any QPainter drawable, i.e. used by the boilerplate to create a cairo-qt surface, and this leaks fonts (cairo-ft-fonts no less) causing assertion failures that all cairo objects are accounted for upon destruction. [Updated by Chris Wilson] Acked-by: Jeff Muizelaar <jeff@infidigm.net> Acked-by: Carl Worth <cworth@cworth.org> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| cairo-boilerplate-beos-private.h | ||
| cairo-boilerplate-beos.cpp | ||
| cairo-boilerplate-directfb-private.h | ||
| cairo-boilerplate-directfb.c | ||
| cairo-boilerplate-getopt.c | ||
| cairo-boilerplate-getopt.h | ||
| cairo-boilerplate-glitz-agl.c | ||
| cairo-boilerplate-glitz-glx.c | ||
| cairo-boilerplate-glitz-private.h | ||
| cairo-boilerplate-glitz-wgl.c | ||
| cairo-boilerplate-pdf-private.h | ||
| cairo-boilerplate-pdf.c | ||
| cairo-boilerplate-ps-private.h | ||
| cairo-boilerplate-ps.c | ||
| cairo-boilerplate-qt-private.h | ||
| cairo-boilerplate-qt.cpp | ||
| cairo-boilerplate-quartz-private.h | ||
| cairo-boilerplate-quartz.c | ||
| cairo-boilerplate-scaled-font.h | ||
| cairo-boilerplate-script-private.h | ||
| cairo-boilerplate-script.c | ||
| cairo-boilerplate-svg-private.h | ||
| cairo-boilerplate-svg.c | ||
| cairo-boilerplate-system.c | ||
| cairo-boilerplate-system.h | ||
| cairo-boilerplate-test-surfaces-private.h | ||
| cairo-boilerplate-test-surfaces.c | ||
| cairo-boilerplate-win32-printing.c | ||
| cairo-boilerplate-win32-private.h | ||
| cairo-boilerplate-win32.c | ||
| cairo-boilerplate-xcb-private.h | ||
| cairo-boilerplate-xcb.c | ||
| cairo-boilerplate-xlib-private.h | ||
| cairo-boilerplate-xlib.c | ||
| cairo-boilerplate-xlib.h | ||
| cairo-boilerplate.c | ||
| cairo-boilerplate.h | ||
| check-link.c | ||
| 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).