tests: make screenshooting return a buffer
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 27 May 2016 11:11:01 +0000 (14:11 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 29 Jun 2016 09:41:31 +0000 (12:41 +0300)
commit365c1296fa8285c6eff09df7888b4cb2e1a4ebb8
tree7e3ea0213a32aca7935da450609baec6b878cbfe
parentfd10ef0f630409e6fbd758fd1b5a9c316234c2c7
tests: make screenshooting return a buffer

Screenshooting does not involve creating a wl_surface, so using struct
surface is superfluous.

Return a struct buffer instead. It could have been just a
pixman_image_t, but setting up proper destruction would be a bit more
work. Should not hurt to keep the wl_buffer around until the user is
ready to free the image.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Daniel Stone <daniels@collabora.com>
tests/internal-screenshot-test.c
tests/weston-test-client-helper.c
tests/weston-test-client-helper.h