Cairo does not expose all Pixman surface formats
Submitted by Tal
Assigned to Chris Wilson @ickle
Description
For a reason unknown to me, cairo_format_t is much more limited than the many options Pixman supports.
The _cairo_image_surface_create_with_pixman_format function does let the user choose a format, but it is not normally exposed.
I can think of many use cases. In particular, my issue was interaction with OpenGL ES 2.0: I am using Cairo to write to byte arrays which I later turn into GL textures. However, OpenGL ES 2.0 only support GL_RGBA, whereas Cairo's CAIRO_FORMAT_ARGB32 is equivalent to PIXMAN_a8r8g8b8. What I really need is PIXMAN_a8b8g8r8.
Can this API be made public?
Version: 1.12.16