mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2025-01-18 10:27:00 +01:00
test/libdrm_mock: add liftoff_mock_plane_get_id()
Useful when manually calling liftoff_plane_create() is desirable.
This commit is contained in:
parent
6e8998c8a8
commit
3e72fc3c5d
2 changed files with 8 additions and 0 deletions
|
@ -206,6 +206,12 @@ liftoff_mock_plane_add_compatible_layer(struct liftoff_mock_plane *plane,
|
|||
abort(); // unreachable
|
||||
}
|
||||
|
||||
uint32_t
|
||||
liftoff_mock_plane_get_id(struct liftoff_mock_plane *plane)
|
||||
{
|
||||
return plane->id;
|
||||
}
|
||||
|
||||
uint32_t
|
||||
liftoff_mock_drm_create_fb(struct liftoff_layer *layer)
|
||||
{
|
||||
|
|
|
@ -37,6 +37,8 @@ liftoff_mock_plane_add_compatible_layer(struct liftoff_mock_plane *plane,
|
|||
struct liftoff_layer *layer);
|
||||
struct liftoff_layer *
|
||||
liftoff_mock_plane_get_layer(struct liftoff_mock_plane *plane);
|
||||
uint32_t
|
||||
liftoff_mock_plane_get_id(struct liftoff_mock_plane *plane);
|
||||
|
||||
uint32_t
|
||||
liftoff_mock_plane_add_property(struct liftoff_mock_plane *plane,
|
||||
|
|
Loading…
Reference in a new issue