11fc5b6c6c
Add `sync_effects_completed()` and `verify_view()` in order to allow Wayland test clients to trigger verifications and add convenience functions to use them to client-utils. Notes: - `sync_effects_completed()` works in two stages in order to ensure it doesn't race with window effects. By the time `sync_effects_completed()` is processed, an effect could already have ended or not yet been scheduled. Thus we defer a check for pending effects to the next paint cycle, assuming that by then they should have been scheduled. - `meta_ref_test_verify_view()` internally triggers the `paint` signal for the stage which is why it can not be run in the after-paint signal handler. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1055>
34 lines
1.0 KiB
XML
34 lines
1.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<protocol name="test_driver">
|
|
<interface name="test_driver" version="1">
|
|
<request name="sync_actor_destroyed">
|
|
<arg name="callback" type="new_id" interface="wl_callback"/>
|
|
<arg name="surface" type="object" interface="wl_surface"/>
|
|
</request>
|
|
|
|
<request name="sync_effects_completed">
|
|
<arg name="callback" type="new_id" interface="wl_callback"/>
|
|
<arg name="surface" type="object" interface="wl_surface"/>
|
|
</request>
|
|
|
|
<request name="sync_point">
|
|
<arg name="sequence" type="uint"/>
|
|
<arg name="surface" type="object" interface="wl_surface" allow-null="true"/>
|
|
</request>
|
|
|
|
<request name="verify_view">
|
|
<arg name="callback" type="new_id" interface="wl_callback"/>
|
|
<arg name="sequence" type="uint"/>
|
|
</request>
|
|
|
|
<event name="sync_event">
|
|
<arg name="sequence" type="uint"/>
|
|
</event>
|
|
|
|
<event name="property">
|
|
<arg name="name" type="string"/>
|
|
<arg name="value" type="string"/>
|
|
</event>
|
|
</interface>
|
|
</protocol>
|