Wayland's Weston Gets A Surface-Shooting API

Written by Michael Larabel in Wayland on 25 February 2015 at 09:09 AM EST. 5 Comments
WAYLAND
One of the early additions past the recent Wayland 1.7 release to the Weston reference compositor is a surface-shooting API to be used for debugging.

The Wayland surface-shooting API is an optional feature of the Weston renderers to fetch the current contents of a surface, or basically the buffer contents in RGBA format. This surface-shooting is just intended for debugging and to dump the contents of a particular surface/buffer. For end-users, Weston already has its screenshooter and the ability to video capture from the compositor.


This surface-shooting work was done by the Collabora and the optional API landed in Weston Git this morning. In later commits the necessary support was added to the Pixman and OpenGL renderer back-ends of Weston.

There's also now the surface-screenshot Weston plug-in for triggering surface screenshots from the surface that has the pointer focus after hitting the keybind. This Weston module dumps the screenshot into the PAM format due to its simplicity and RGBA format support.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week