[cairo] Cairo with OpenGLES

Alexandros Frantzis alexandros.frantzis at linaro.org
Fri Jul 22 04:55:07 PDT 2011

On Fri, Jul 22, 2011 at 12:14:14PM +0200, Singh Khurdiya Vijay (CM-AI/EAR) wrote:
> Hello,
> Thanks....
> Currently I am trying to test some high level graphic toolkit like clutter (Currently testing),gtk...which will use cairo-pango for font rendering.
> I have working clutter  with GLES2 flavor (eglx),but test which used Cairo for font rendering are not working properly.(Not getting H/W acceleration..)
> What I found up to know is clutter uses Cairo image surface backed for this purpose  but I wanted to try using other surface backed & preferring gles as my test is working.
> I would like to know for this purpose can I use your work for testing & latter for extension based on need.

You can use cairo-gl surfaces for rendering fonts onto textures. Keep in
mind, though, that:

1. Dependening on your use case you may not get any performance benefits.
   Be sure to benchmark your changes.

2. Setting up and using a cairo-gl(es2) device and surface is more
   complicated than using an image surface and requires interfacing with
   EGL, ensuring you don't mess up clutter/cogl state etc.


More information about the cairo mailing list