| OLD | NEW |
| 1 /* Generated by wayland-scanner 1.11.0 */ | 1 /* Generated by wayland-scanner 1.12.90 */ |
| 2 | 2 |
| 3 #ifndef LINUX_EXPLICIT_SYNCHRONIZATION_UNSTABLE_V1_SERVER_PROTOCOL_H | 3 #ifndef LINUX_EXPLICIT_SYNCHRONIZATION_UNSTABLE_V1_SERVER_PROTOCOL_H |
| 4 #define LINUX_EXPLICIT_SYNCHRONIZATION_UNSTABLE_V1_SERVER_PROTOCOL_H | 4 #define LINUX_EXPLICIT_SYNCHRONIZATION_UNSTABLE_V1_SERVER_PROTOCOL_H |
| 5 | 5 |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include "wayland-server.h" | 8 #include "wayland-server.h" |
| 9 | 9 |
| 10 #ifdef __cplusplus | 10 #ifdef __cplusplus |
| 11 extern "C" { | 11 extern "C" { |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 * @param surface the surface | 124 * @param surface the surface |
| 125 */ | 125 */ |
| 126 void (*get_synchronization)(struct wl_client *client, | 126 void (*get_synchronization)(struct wl_client *client, |
| 127 struct wl_resource *resource, | 127 struct wl_resource *resource, |
| 128 uint32_t id, | 128 uint32_t id, |
| 129 struct wl_resource *surface); | 129 struct wl_resource *surface); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 | 132 |
| 133 /** | 133 /** |
| 134 * @ingroup iface_zcr_linux_explicit_synchronization_v1 |
| 135 */ |
| 136 #define ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_DESTROY_SINCE_VERSION 1 |
| 137 /** |
| 138 * @ingroup iface_zcr_linux_explicit_synchronization_v1 |
| 139 */ |
| 140 #define ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_GET_SYNCHRONIZATION_SINCE_VERSION
1 |
| 141 |
| 142 #ifndef ZCR_SYNCHRONIZATION_V1_ERROR_ENUM |
| 143 #define ZCR_SYNCHRONIZATION_V1_ERROR_ENUM |
| 144 enum zcr_synchronization_v1_error { |
| 145 /** |
| 146 * the fence specified by the client could not be imported |
| 147 */ |
| 148 ZCR_SYNCHRONIZATION_V1_ERROR_INVALID_FENCE = 0, |
| 149 }; |
| 150 #endif /* ZCR_SYNCHRONIZATION_V1_ERROR_ENUM */ |
| 151 |
| 152 /** |
| 134 * @ingroup iface_zcr_synchronization_v1 | 153 * @ingroup iface_zcr_synchronization_v1 |
| 135 * @struct zcr_synchronization_v1_interface | 154 * @struct zcr_synchronization_v1_interface |
| 136 */ | 155 */ |
| 137 struct zcr_synchronization_v1_interface { | 156 struct zcr_synchronization_v1_interface { |
| 138 /** | 157 /** |
| 139 * destroy synchronization object | 158 * destroy synchronization object |
| 140 * | 159 * |
| 141 * Destroy this explicit synchronization object. | 160 * Destroy this explicit synchronization object. |
| 142 */ | 161 */ |
| 143 void (*destroy)(struct wl_client *client, | 162 void (*destroy)(struct wl_client *client, |
| 144 struct wl_resource *resource); | 163 struct wl_resource *resource); |
| 145 /** | 164 /** |
| 146 * set the acquire fence | 165 * set the acquire fence |
| 147 * | 166 * |
| 148 * Set the acquire fence that must be signaled before the | 167 * Set the acquire fence that must be signaled before the |
| 149 * compositor is allowed to read the pixels in the pending | 168 * compositor is allowed to read the pixels in the pending |
| 150 * wl_buffer. | 169 * wl_buffer. |
| 151 * | 170 * |
| 152 * The acquire state is double-buffered state, and will be applied | 171 * The acquire state is double-buffered state, and will be applied |
| 153 * on the next wl_surface.commit. | 172 * on the next wl_surface.commit. |
| 173 * |
| 174 * If the fence could not be imported, an INVALID_FENCE error is |
| 175 * signaled to the client. |
| 154 * @param fd fence fd | 176 * @param fd fence fd |
| 155 */ | 177 */ |
| 156 void (*set_acquire_fence)(struct wl_client *client, | 178 void (*set_acquire_fence)(struct wl_client *client, |
| 157 struct wl_resource *resource, | 179 struct wl_resource *resource, |
| 158 int32_t fd); | 180 int32_t fd); |
| 159 }; | 181 }; |
| 160 | 182 |
| 161 | 183 |
| 184 /** |
| 185 * @ingroup iface_zcr_synchronization_v1 |
| 186 */ |
| 187 #define ZCR_SYNCHRONIZATION_V1_DESTROY_SINCE_VERSION 1 |
| 188 /** |
| 189 * @ingroup iface_zcr_synchronization_v1 |
| 190 */ |
| 191 #define ZCR_SYNCHRONIZATION_V1_SET_ACQUIRE_FENCE_SINCE_VERSION 1 |
| 192 |
| 162 #ifdef __cplusplus | 193 #ifdef __cplusplus |
| 163 } | 194 } |
| 164 #endif | 195 #endif |
| 165 | 196 |
| 166 #endif | 197 #endif |
| OLD | NEW |