add convenience functions to create surface with file descriptor
Submitted by Christian Persch (GNOME)
Assigned to Chris Wilson @ickle
Link to original bug (#107598)
Description
Created attachment 141152 patch
There are already functions to create surfaces for filenames and streams; that attached patch adds the API to do the same for file descriptor.
While it is true that this can already be accomplished by using the stream functions with a custom write function, that's leading to code duplication, and is not as convenient as a simple API call. Also, cairo internally already has all the code in cairo-output-stream.c to handle this; all it needs is be exposed.
Patch 141152, "patch":
cairo-fd.patch