[cairo] Re: Sorry I broke the text tests! (and status update)

Mathias Hasselmann mathias.hasselmann at gmx.de
Sun Mar 4 06:44:34 PST 2007


Ok, so here there is a first patch. Followed the path of
CAIRO_MUTEX_INITIALIZE() in every potential entry point. Only
difference: CAIRO_MUTEX_INITIALIZE() also invokes code on pthread
platforms as I wanted to keep handling of CAIRO_MUTEX_DECLARE simple. 
If that minimal performance penalty is not acceptable, I can change
that.

Compile-tested the changes with following feature sets:

- Ubuntu 6.10:

#define CAIRO_HAS_SVG_SURFACE 1
#define CAIRO_HAS_PDF_SURFACE 1
#define CAIRO_HAS_PS_SURFACE 1
#define CAIRO_HAS_FT_FONT 1
#define CAIRO_HAS_DIRECTFB_SURFACE 1
#define CAIRO_HAS_GLITZ_SURFACE 1
#define CAIRO_HAS_PNG_FUNCTIONS 1
#define CAIRO_HAS_XLIB_XRENDER_SURFACE 1
#define CAIRO_HAS_XLIB_SURFACE 1

- Windows (cross-compiled using mingw32):

#define CAIRO_HAS_SVG_SURFACE 1
#define CAIRO_HAS_PDF_SURFACE 1
#define CAIRO_HAS_PS_SURFACE 1
#define CAIRO_HAS_FT_FONT 1
#define CAIRO_HAS_PNG_FUNCTIONS 1
#define CAIRO_HAS_WIN32_FONT 1
#define CAIRO_HAS_WIN32_SURFACE 1

- OSX 10.3

#define CAIRO_HAS_ATSUI_FONT 1
#define CAIRO_HAS_SVG_SURFACE 1
#define CAIRO_HAS_PDF_SURFACE 1
#define CAIRO_HAS_PS_SURFACE 1
#define CAIRO_HAS_FT_FONT 1
#define CAIRO_HAS_PNG_FUNCTIONS 1
#define CAIRO_HAS_QUARTZ_SURFACE 1


Not tested: XCB, OS/2, BeOS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo-mutex-private.diff
Type: text/x-patch
Size: 42305 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070304/b0858062/cairo-mutex-private-0001.bin


More information about the cairo mailing list