[cairo] Cairo XCB backend
Jamey Sharp
jamey at minilop.net
Mon Feb 2 23:26:05 PST 2004
Cairo can use XCB as a backend in place of Xlib now, meaning we have a
new class of potential test apps for XCB. I've committed changes to
cairo, xcb-proto, and cairo-demo.
Last week I cornered Keith and made him explain some oddities of Render
to me, then brought XCB's client-side implementation of Render up to
date with the current protocol, and finally ported Cairo's Xlib surface
backend and one of the demos to XCB.
Cairo's XCB backend can't currently be compiled alongside the Xlib
backend, because both libraries define some of the same symbols. (I'd
really appreciate people's thoughts on making the libraries co-exist
better.) Meanwhile, I set Cairo's configure script to default to not
building the XCB backend.
I expect the Cairo XCB port is broken various ways; in particular, I
noticed that cairo-demo renders the rotated text as garbage on my
system. I imagine the fact that my GetImage and PutImage calls are way
over-simplistic is the cause. So some testing and inspection by people
who understand the X protocol better than I do would be appreciated.
(Writing XCB has almost never required me to know the semantics of X...)
To build Cairo with XCB:
* Get/build/install xproto, then xau, from CVS root
freedesktop.org:/cvs/xlibs
* Get/build/install xcb-proto, then xcb, from CVS root
freedesktop.org:/cvs/xcb
* Install the usual Cairo prerequisites (see http://cairographics.org).
* Configure Cairo with the '--disable-xlib --enable-xcb' options.
cairo-demo/X11/cairo-demo.c is the only demo I modified to be able to
use the new backend; the others won't compile with an XCB-only Cairo
until they're suitably modified too.
I so hope to get some good feedback on XCB from this...
--
Jamey Sharp <jamey at minilop.net> - http://minilop.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20040202/2a0b9605/attachment.pgp
More information about the cairo
mailing list