[cairo] PATCH: GL: Create glyph mask surface only once per context, enlarge on demand

Mikko Strandborg Mikko.Strandborg at symbio.com
Fri Feb 15 05:38:43 PST 2013


In text rendering, when the rendering happens via a mask, the GL surface allocates and releases a temporary mask surface for each text rendering operation. This is very slow. The attached patch stores the mask surface to GL context. It is created lazily on first rendering, and enlarged on demand. This makes text rendering some 250% faster in some cases.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20130215/9c619227/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-GL-Create-glyph-mask-only-once-per-GL-context-enlarg.patch
Type: application/octet-stream
Size: 5944 bytes
Desc: 0001-GL-Create-glyph-mask-only-once-per-GL-context-enlarg.patch
URL: <http://lists.cairographics.org/archives/cairo/attachments/20130215/9c619227/attachment.obj>

More information about the cairo mailing list