Personally this sounds like a case for using xrender composite, src
(square) & mask (8bits alpha pixmap) -> dst (rounded, smooth?).
The reason cairo doesn't support 1 bit is because no hw from this
century will support it. Just use 8bits.

I think the SRC operator is appropriate in this case.

The problem you might have with cairo-xcb is that is the
implementation is not as complete as cairo-xlib and this kind of
operation is not neccesarily small/fast (it should be fine if it hits
an actual gpu path). Api wise cairo is preferred ofcource. You can
try, but be prepared to delve into cairo if you hit something nasty.

Maarten.

-- 
To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.

Reply via email to