From: Pekka Paalanen <[email protected]> Hi,
this series implements the surface shots debug feature. It is mainly intended for use by ivi-shell, where people want to inspect the surface contents for testing and debugging. Implementations are provided for Pixman and GL renderers, for the rest (rpi-renderer) the new API should fail gracefully. There is also some refactoring in the middle to introduce file_create_dated() function. It is used by timeline.c and the test plugin for surface shots, but it shouldn't be hard to make Weston's screenshooter use it. The call cairo_surface_write_to_png() would need to be replaced with cairo_surface_write_to_png_stream() so that it would write to an already opened file. It would be nice to have screenshots written to consecutive files instead of always overwriting the same file. :-) The manual test plugin can be used like this: $ weston --modules=$PWD/.libs/surface-screenshot.so Pekka Paalanen (7): compositor: add surface-shooting API shared: add file_create_dated() helper timeline: use file_create_dated() helper surface-screenshot: a new manual test module gl-renderer: add BUFFER_TYPE_SOLID gl-renderer: implement surface_copy_content pixman-renderer: implement surface_copy_content Makefile.am | 19 +++++ shared/file-util.c | 118 ++++++++++++++++++++++++++ shared/file-util.h | 40 +++++++++ src/compositor.c | 120 +++++++++++++++++++++++++- src/compositor.h | 23 +++++ src/gl-renderer.c | 168 ++++++++++++++++++++++++++++++++++++ src/pixman-renderer.c | 51 +++++++++++ src/timeline.c | 37 ++++---- tests/surface-screenshot.c | 207 +++++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 761 insertions(+), 22 deletions(-) create mode 100644 shared/file-util.c create mode 100644 shared/file-util.h create mode 100644 tests/surface-screenshot.c -- 2.0.5 Thanks, pq _______________________________________________ wayland-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
