summaryrefslogtreecommitdiff
path: root/protocol
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2014-12-15 17:03:04 -0800
committerBryce Harrington <bryce@osg.samsung.com>2015-05-21 15:05:53 -0700
commit83d61b6dfb88f681addebbec6676bef4de5824a4 (patch)
tree19d13ee30042f15a13f9e813c1f6d46c1e99e136 /protocol
parented2c644892824b70869783f768b53a1dbb3c06aa (diff)
downloadweston-83d61b6dfb88f681addebbec6676bef4de5824a4.tar.gz
protocol: Add test screenshot capability
This adds a capture_screenshot request which returns an image of the screen in the client-supplied wl_buffer for the given display output. A 'done' event is used to indicate when screenshotting has finished and the wl_buffer is ready to be read. Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-By: Derek Foreman <derekf@osg.samsung.com>
Diffstat (limited to 'protocol')
-rw-r--r--protocol/weston-test.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/protocol/weston-test.xml b/protocol/weston-test.xml
index 643a0c7c..2fd6b7a4 100644
--- a/protocol/weston-test.xml
+++ b/protocol/weston-test.xml
@@ -73,6 +73,22 @@
<event name="n_egl_buffers">
<arg name="n" type="uint"/>
</event>
+ <request name="capture_screenshot">
+ <description summary="records current screen image">
+ Records an image of what is currently displayed on a given
+ display output, returning the image as an event.
+ </description>
+ <arg name="output" type="object" interface="wl_output"
+ summary="output to capture from"/>
+ <arg name="buffer" type="object" interface="wl_buffer"
+ summary="buffer for returning screenshots to the test client"/>
+ </request>
+ <event name="capture_screenshot_done">
+ <description summary="screenshot capture is done">
+ The capture_screenshot_done signal is sent when a screenshot has been copied into the
+ provided buffer.
+ </description>
+ </event>
</interface>
<interface name="weston_test_runner" version="1">