[Xcb] Region

Carl Worth cworth at cworth.org
Tue May 31 14:42:55 PDT 2005

On Tue, 31 May 2005 13:01:02 -0700, Jamey Sharp wrote:
> I don't know if the semantics have drifted: does libpixman's region code
> have subpixel precision now or something? Carl and Keith should know,
> and both are on this list: maybe one will chime in here.

I haven't changed any semantics in the region code.

When I went shopping for a region implementation I found two
versions. One in the X server, and one in Xlib. The two versions
obviously had common heritage, but one had a significant memory
optimization for the common case of a single-rectangle region (or
something like that --- and I think it was the server's version that
was more efficient). I grabbed the more efficient version and made
libpixregion from it.

> Unfortunately the Cairo folks merged the software implementation of
> Render together with the region code into one library, so libpixman
> still isn't a minimal region implementation.

Yes. People complained about lots-of-little-libraries problems[*] so I
combined libpixregion in with libpixman.


[*] Of the two complaints, I think both are basically bogus. One was
that it's "hard" to build lots of little libraries. This argument
doesn't hold much weight with me since almost everyone gets their
libraries automatically through a package system, (and build systems
for those who don't are getting better).

The second problem was that link time loading is inefficient in the
number of libraries. On this point I agree with Bart that this
indicates a bug in the linker, but the way things are now I decided
not to push the point with libpixregion.
-------------- 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/xcb/attachments/20050531/e08aaa28/attachment.pgp

More information about the xcb mailing list