Bug 107598 - add convenience functions to create surface with file descriptor
Summary: add convenience functions to create surface with file descriptor
Status: RESOLVED MOVED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Chris Wilson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-16 20:51 UTC by Christian Persch (GNOME)
Modified: 2018-08-25 13:58 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch (20.92 KB, patch)
2018-08-16 20:51 UTC, Christian Persch (GNOME)
Details | Splinter Review

Description Christian Persch (GNOME) 2018-08-16 20:51:50 UTC
Created attachment 141152 [details] [review]
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.
Comment 1 GitLab Migration User 2018-08-25 13:58:34 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/298.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.