summaryrefslogtreecommitdiff
path: root/tests/weston-test-client-helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/weston-test-client-helper.h')
-rw-r--r--tests/weston-test-client-helper.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/weston-test-client-helper.h b/tests/weston-test-client-helper.h
index 7c2727ad..e3ebd1f2 100644
--- a/tests/weston-test-client-helper.h
+++ b/tests/weston-test-client-helper.h
@@ -197,10 +197,10 @@ void
expect_protocol_error(struct client *client,
const struct wl_interface *intf, uint32_t code);
-char*
+char *
screenshot_output_filename(const char *basename, uint32_t seq);
-char*
+char *
screenshot_reference_filename(const char *basename, uint32_t seq);
bool
@@ -212,4 +212,16 @@ check_surfaces_equal(const struct surface *a, const struct surface *b);
bool
check_surfaces_match_in_clip(const struct surface *a, const struct surface *b, const struct rectangle *clip);
+bool
+write_surface_as_png(const struct surface *weston_surface, const char *fname);
+
+struct surface *
+load_surface_from_png(const char *fname);
+
+struct surface *
+create_screenshot_surface(struct client *client);
+
+struct surface *
+capture_screenshot_of_output(struct client *client);
+
#endif