Fix the tests

* tests/damage_test.c (handle_test_surface_committed)
(test_surface_listener):
* tests/dmabuf_test.c (handle_test_surface_committed)
(test_surface_listener):
* tests/scale_test.c (handle_test_surface_committed)
(test_surface_listener):
* tests/seat_test.c (handle_test_surface_committed)
(test_surface_listener):
* tests/simple_test.c (handle_test_surface_committed)
(test_surface_listener):
* tests/single_pixel_buffer_test.c (handle_test_surface_committed)
(test_surface_listener):
* tests/subsurface_test.c (handle_test_surface_committed)
(test_surface_listener):
* tests/transform_test.c (handle_test_surface_committed)
(test_surface_listener):
* tests/viewporter_test.c (handle_test_surface_committed)
(test_surface_listener):
* tests/xdg_activation_test.c (handle_test_surface_committed)
(test_surface_listener): Add new committed listeners.
This commit is contained in:
hujianwei 2022-11-22 11:10:40 +00:00
parent 2973069bd0
commit c83e7243e1
10 changed files with 89 additions and 0 deletions

View file

@ -164,9 +164,18 @@ handle_test_surface_mapped (void *data, struct test_surface *surface,
test_single_step (BASIC_TEST_CARD_IMAGE_KIND);
}
static void
handle_test_surface_committed (void *data, struct test_surface *surface,
uint32_t presentation_hint)
{
}
static const struct test_surface_listener test_surface_listener =
{
handle_test_surface_mapped,
NULL,
handle_test_surface_committed,
};

View file

@ -282,9 +282,18 @@ handle_test_surface_mapped (void *data, struct test_surface *surface,
test_surface_window = xid;
}
static void
handle_test_surface_committed (void *data, struct test_surface *surface,
uint32_t presentation_hint)
{
}
static const struct test_surface_listener test_surface_listener =
{
handle_test_surface_mapped,
NULL,
handle_test_surface_committed,
};

View file

@ -225,9 +225,18 @@ handle_test_surface_mapped (void *data, struct test_surface *surface,
test_single_step (BUFFER_SCALE_1_KIND);
}
static void
handle_test_surface_committed (void *data, struct test_surface *surface,
uint32_t presentation_hint)
{
}
static const struct test_surface_listener test_surface_listener =
{
handle_test_surface_mapped,
NULL,
handle_test_surface_committed,
};

View file

@ -1324,9 +1324,18 @@ handle_test_surface_mapped (void *data, struct test_surface *surface,
test_single_step (TEST_ENTRY_KIND);
}
static void
handle_test_surface_committed (void *data, struct test_surface *surface,
uint32_t presentation_hint)
{
}
static const struct test_surface_listener test_surface_listener =
{
handle_test_surface_mapped,
NULL,
handle_test_surface_committed,
};

View file

@ -140,9 +140,18 @@ handle_test_surface_mapped (void *data, struct test_surface *surface,
test_single_step (BASIC_TEST_CARD_IMAGE_KIND);
}
static void
handle_test_surface_committed (void *data, struct test_surface *surface,
uint32_t presentation_hint)
{
}
static const struct test_surface_listener test_surface_listener =
{
handle_test_surface_mapped,
NULL,
handle_test_surface_committed,
};

View file

@ -132,9 +132,18 @@ handle_test_surface_mapped (void *data, struct test_surface *surface,
test_single_step (SINGLE_PIXEL_BUFFER_KIND);
}
static void
handle_test_surface_committed (void *data, struct test_surface *surface,
uint32_t presentation_hint)
{
}
static const struct test_surface_listener test_surface_listener =
{
handle_test_surface_mapped,
NULL,
handle_test_surface_committed,
};

View file

@ -962,9 +962,18 @@ handle_test_surface_mapped (void *data, struct test_surface *surface,
test_single_step (SUBSURFACE_UNDER_KIND);
}
static void
handle_test_surface_committed (void *data, struct test_surface *surface,
uint32_t presentation_hint)
{
}
static const struct test_surface_listener test_surface_listener =
{
handle_test_surface_mapped,
NULL,
handle_test_surface_committed,
};

View file

@ -253,9 +253,18 @@ handle_test_surface_mapped (void *data, struct test_surface *surface,
test_single_step (BUFFER_TRANSFORM_90_KIND);
}
static void
handle_test_surface_committed (void *data, struct test_surface *surface,
uint32_t presentation_hint)
{
}
static const struct test_surface_listener test_surface_listener =
{
handle_test_surface_mapped,
NULL,
handle_test_surface_committed,
};

View file

@ -228,9 +228,18 @@ handle_test_surface_mapped (void *data, struct test_surface *surface,
test_single_step (VIEWPORT_DEST_200_150_KIND);
}
static void
handle_test_surface_committed (void *data, struct test_surface *surface,
uint32_t presentation_hint)
{
}
static const struct test_surface_listener test_surface_listener =
{
handle_test_surface_mapped,
NULL,
handle_test_surface_committed,
};

View file

@ -305,10 +305,18 @@ handle_test_surface_activated (void *data, struct test_surface *test_surface,
last_activation_surface = activator_surface;
}
static void
handle_test_surface_committed (void *data, struct test_surface *surface,
uint32_t presentation_hint)
{
}
static const struct test_surface_listener test_surface_listener =
{
handle_test_surface_mapped,
handle_test_surface_activated,
handle_test_surface_committed,
};