tests: convert image saver to pixman
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 27 May 2016 10:54:35 +0000 (13:54 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 29 Jun 2016 09:41:31 +0000 (12:41 +0300)
commitfd10ef0f630409e6fbd758fd1b5a9c316234c2c7
tree2a983c6b92f906c53907c22d35fd8e0ea0c9d483
parent289fdeb019a095b18333ccc652d94afe5ceeb7a3
tests: convert image saver to pixman

This rewrites write_surface_as_png() into write_image_as_png(), which
operates on a pixman_image_t instead of a struct surface.

This is part of the migration to use pixman_image_t everywhere without
superfluous parameters/members.

Now the image saving handles more than just ARGB32 format, presumably.
At least it does not assume everything is always ARGB32.

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