surface-screenshot: a new manual test module
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 9 Feb 2015 09:23:48 +0000 (11:23 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 25 Feb 2015 12:48:02 +0000 (14:48 +0200)
commit312fe5f4453c3637ed8d8fd35609dc1e64aec19e
tree23b206b2043c578a40e58776a7abf74ce54cec93
parent23a07005ed9fc2eec1e0540d882d256cd48f20ab
surface-screenshot: a new manual test module

Add a new Weston plugin under tests/ for manual testing of the
surface-shooting API.

The debug key binding 'h' triggers a surface shot from the surface that
currently has the pointer focus. The shot is written in PAM format into
a file. PAM format was chosen because it is dead-simple to write from
scratch and can carry an RGBA format.

Changes in v2:
- check fprintf calls, fix a malloc without free
- remove stride and format arguments from the API

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
v1 Tested-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Makefile.am
tests/surface-screenshot.c [new file with mode: 0644]