aca8be64c1
MetaSelectionSourceMemory currently uses GBytes for its underlying data. This can cause memory overhead when large items, such as HD images, are stored in the clipboard. This commit changes the underlying data structure to a MetaAnonymousFile object, which writes to memfd instead of heap. When reading, MetaSelectionSourceMemory will create a Gio.UnixInputStream from the file descriptor generated by MetaAnonymousFile. We subclass the UnixInputStream as MetaUnixInputStream, to override the stream's close_fn function so that it invokes meta_anonymous_file_close_fd when the stream terminates. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3551> |
||
---|---|---|
.. | ||
backends | ||
common | ||
compositor | ||
core | ||
frames | ||
meta | ||
tests | ||
wayland | ||
x11 | ||
meson.build | ||
meta-private-enum-types.c.in | ||
meta-private-enum-types.h.in |