mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-06 23:44:58 +00:00
tests: Handle screenshot done event in weston-test
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-By: Derek Foreman <derekf@osg.samsung.com>
This commit is contained in:
parent
f280d11274
commit
692275f91f
|
@ -446,9 +446,19 @@ test_handle_n_egl_buffers(void *data, struct weston_test *weston_test, uint32_t
|
|||
test->n_egl_buffers = n;
|
||||
}
|
||||
|
||||
static void
|
||||
test_handle_capture_screenshot_done(void *data, struct weston_test *weston_test)
|
||||
{
|
||||
struct test *test = data;
|
||||
|
||||
printf("Screenshot has been captured\n");
|
||||
test->buffer_copy_done = 1;
|
||||
}
|
||||
|
||||
static const struct weston_test_listener test_listener = {
|
||||
test_handle_pointer_position,
|
||||
test_handle_n_egl_buffers,
|
||||
test_handle_capture_screenshot_done,
|
||||
};
|
||||
|
||||
static void
|
||||
|
|
|
@ -64,6 +64,7 @@ struct test {
|
|||
int pointer_x;
|
||||
int pointer_y;
|
||||
uint32_t n_egl_buffers;
|
||||
int buffer_copy_done;
|
||||
};
|
||||
|
||||
struct input {
|
||||
|
|
Loading…
Reference in a new issue