mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-07-03 08:19:17 +00:00
Compare commits
2 Commits
6e737c56e6
...
e7ba07ca61
Author | SHA1 | Date | |
---|---|---|---|
|
e7ba07ca61 | ||
|
21980e88c1 |
|
@ -88,12 +88,15 @@ TEST(drm_writeback_screenshot) {
|
|||
char *fname;
|
||||
bool match;
|
||||
int frame;
|
||||
struct output *first_available_output;
|
||||
|
||||
/* create client */
|
||||
testlog("Creating client for test\n");
|
||||
client = create_client_and_test_surface(100, 100, 100, 100);
|
||||
assert(client);
|
||||
surface = client->surface->wl_surface;
|
||||
first_available_output = container_of(client->output_list.prev,
|
||||
struct output, link);
|
||||
|
||||
/* move pointer away from image so it does not interfere with the
|
||||
* comparison of the writeback screenshot with the reference image */
|
||||
|
@ -110,7 +113,7 @@ TEST(drm_writeback_screenshot) {
|
|||
|
||||
/* take screenshot */
|
||||
testlog("Taking a screenshot\n");
|
||||
screenshot = client_capture_output(client, client->output,
|
||||
screenshot = client_capture_output(client, first_available_output,
|
||||
WESTON_CAPTURE_V1_SOURCE_WRITEBACK);
|
||||
assert(screenshot);
|
||||
buffer_destroy(screenshot);
|
||||
|
@ -118,7 +121,7 @@ TEST(drm_writeback_screenshot) {
|
|||
/* take another screenshot; this is important to ensure the
|
||||
* writeback state machine is working correctly */
|
||||
testlog("Taking another screenshot\n");
|
||||
screenshot = client_capture_output(client, client->output,
|
||||
screenshot = client_capture_output(client, first_available_output,
|
||||
WESTON_CAPTURE_V1_SOURCE_WRITEBACK);
|
||||
assert(screenshot);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user