47d68dae59
check_surfaces_geometry() is removed as it was not used by anything, and unlikely would be. check_surfaces_equal() is merged into check_surfaces_match_in_clip(), passing a NULL clip means to compare whole images. check_surfaces_match_in_clip() is converted to work on pixman_image_t instead of struct surface. The function is only concerned about comparing images in memory, and does not care about a wl_buffer or a wl_surface. The verbosity of image comparisons is greatly reduced. An image mismatch no longer prints a flood of raw pixel values. This will be replaced later with a function writing out an error image instead. Degenerate comparisons are no longer accepted, be that clip outside images or zero area. Those are an indication of a programmer error. The pixel format assumptions are made more visible in the code. A new internal helper image_check_get_roi() computes and verifies the area to be compared. Image iterator helper makes it simpler to write manual pixel-poking loops. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Daniel Stone <daniels@collabora.com> |
||
---|---|---|
.. | ||
reference | ||
.gitignore | ||
bad-buffer-test.c | ||
buffer-count-test.c | ||
button-test.c | ||
config-parser-test.c | ||
devices-test.c | ||
event-test.c | ||
internal-screenshot-test.c | ||
internal-screenshot.ini | ||
ivi_layout-internal-test.c | ||
ivi_layout-test-plugin.c | ||
ivi_layout-test.c | ||
ivi-shell-app-test.c | ||
ivi-test.h | ||
keyboard-test.c | ||
matrix-test.c | ||
presentation-test.c | ||
roles-test.c | ||
setbacklight.c | ||
subsurface-test.c | ||
surface-global-test.c | ||
surface-screenshot.c | ||
surface-test.c | ||
text-test.c | ||
vertex-clip-test.c | ||
viewporter-test.c | ||
weston-test-client-helper.c | ||
weston-test-client-helper.h | ||
weston-test-runner.c | ||
weston-test-runner.h | ||
weston-test.c | ||
weston-tests-env | ||
xwayland-test.c |