[cairo-bugs] [Bug 107598] New: add convenience functions to create surface with file descriptor

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Aug 16 20:51:50 UTC 2018


            Bug ID: 107598
           Summary: add convenience functions to create surface with file
           Product: cairo
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: chris at chris-wilson.co.uk
          Reporter: chpe at gnome.org
        QA Contact: cairo-bugs at cairographics.org

Created attachment 141152
  --> https://bugs.freedesktop.org/attachment.cgi?id=141152&action=edit

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

You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo-bugs/attachments/20180816/abbe6f8d/attachment.html>

More information about the cairo-bugs mailing list