Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/wayland-protocols/include/protocol/linux-explicit-synchronization-unstable-v1-client-protocol.h

Issue 2404513002: exo: Implement zcr_linux_explicit_synchronization_v1
Patch Set: rebase, address review comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_CLIENT_PROTOCOL_H 3 #ifndef LINUX_EXPLICIT_SYNCHRONIZATION_UNSTABLE_V1_CLIENT_PROTOCOL_H
4 #define LINUX_EXPLICIT_SYNCHRONIZATION_UNSTABLE_V1_CLIENT_PROTOCOL_H 4 #define LINUX_EXPLICIT_SYNCHRONIZATION_UNSTABLE_V1_CLIENT_PROTOCOL_H
5 5
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <stddef.h> 7 #include <stddef.h>
8 #include "wayland-client.h" 8 #include "wayland-client.h"
9 9
10 #ifdef __cplusplus 10 #ifdef __cplusplus
11 extern "C" { 11 extern "C" {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 #ifndef ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_ERROR_ENUM 89 #ifndef ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_ERROR_ENUM
90 #define ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_ERROR_ENUM 90 #define ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_ERROR_ENUM
91 enum zcr_linux_explicit_synchronization_v1_error { 91 enum zcr_linux_explicit_synchronization_v1_error {
92 /** 92 /**
93 * the surface already has an synchronization object associated 93 * the surface already has an synchronization object associated
94 */ 94 */
95 ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_ERROR_SYNCHRONIZATION_EXISTS = 0, 95 ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_ERROR_SYNCHRONIZATION_EXISTS = 0,
96 }; 96 };
97 #endif /* ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_ERROR_ENUM */ 97 #endif /* ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_ERROR_ENUM */
98 98
99 #define ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_DESTROY» 0 99 #define ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_DESTROY 0
100 #define ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_GET_SYNCHRONIZATION» 1 100 #define ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_GET_SYNCHRONIZATION 1
101
101 102
102 /** 103 /**
103 * @ingroup iface_zcr_linux_explicit_synchronization_v1 104 * @ingroup iface_zcr_linux_explicit_synchronization_v1
104 */ 105 */
105 #define ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_DESTROY_SINCE_VERSION» 1 106 #define ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_DESTROY_SINCE_VERSION 1
106 /** 107 /**
107 * @ingroup iface_zcr_linux_explicit_synchronization_v1 108 * @ingroup iface_zcr_linux_explicit_synchronization_v1
108 */ 109 */
109 #define ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_GET_SYNCHRONIZATION_SINCE_VERSION» 1 110 #define ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_GET_SYNCHRONIZATION_SINCE_VERSION 1
110 111
111 /** @ingroup iface_zcr_linux_explicit_synchronization_v1 */ 112 /** @ingroup iface_zcr_linux_explicit_synchronization_v1 */
112 static inline void 113 static inline void
113 zcr_linux_explicit_synchronization_v1_set_user_data(struct zcr_linux_explicit_sy nchronization_v1 *zcr_linux_explicit_synchronization_v1, void *user_data) 114 zcr_linux_explicit_synchronization_v1_set_user_data(struct zcr_linux_explicit_sy nchronization_v1 *zcr_linux_explicit_synchronization_v1, void *user_data)
114 { 115 {
115 wl_proxy_set_user_data((struct wl_proxy *) zcr_linux_explicit_synchroniz ation_v1, user_data); 116 wl_proxy_set_user_data((struct wl_proxy *) zcr_linux_explicit_synchroniz ation_v1, user_data);
116 } 117 }
117 118
118 /** @ingroup iface_zcr_linux_explicit_synchronization_v1 */ 119 /** @ingroup iface_zcr_linux_explicit_synchronization_v1 */
119 static inline void * 120 static inline void *
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 zcr_linux_explicit_synchronization_v1_get_synchronization(struct zcr_linux_expli cit_synchronization_v1 *zcr_linux_explicit_synchronization_v1, struct wl_surface *surface) 156 zcr_linux_explicit_synchronization_v1_get_synchronization(struct zcr_linux_expli cit_synchronization_v1 *zcr_linux_explicit_synchronization_v1, struct wl_surface *surface)
156 { 157 {
157 struct wl_proxy *id; 158 struct wl_proxy *id;
158 159
159 id = wl_proxy_marshal_constructor((struct wl_proxy *) zcr_linux_explicit _synchronization_v1, 160 id = wl_proxy_marshal_constructor((struct wl_proxy *) zcr_linux_explicit _synchronization_v1,
160 ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_GET_SYNCHRONIZATI ON, &zcr_synchronization_v1_interface, NULL, surface); 161 ZCR_LINUX_EXPLICIT_SYNCHRONIZATION_V1_GET_SYNCHRONIZATI ON, &zcr_synchronization_v1_interface, NULL, surface);
161 162
162 return (struct zcr_synchronization_v1 *) id; 163 return (struct zcr_synchronization_v1 *) id;
163 } 164 }
164 165
165 #define ZCR_SYNCHRONIZATION_V1_DESTROY» 0 166 #ifndef ZCR_SYNCHRONIZATION_V1_ERROR_ENUM
166 #define ZCR_SYNCHRONIZATION_V1_SET_ACQUIRE_FENCE» 1 167 #define ZCR_SYNCHRONIZATION_V1_ERROR_ENUM
168 enum zcr_synchronization_v1_error {
169 » /**
170 » * the fence specified by the client could not be imported
171 » */
172 » ZCR_SYNCHRONIZATION_V1_ERROR_INVALID_FENCE = 0,
173 };
174 #endif /* ZCR_SYNCHRONIZATION_V1_ERROR_ENUM */
175
176 #define ZCR_SYNCHRONIZATION_V1_DESTROY 0
177 #define ZCR_SYNCHRONIZATION_V1_SET_ACQUIRE_FENCE 1
178
167 179
168 /** 180 /**
169 * @ingroup iface_zcr_synchronization_v1 181 * @ingroup iface_zcr_synchronization_v1
170 */ 182 */
171 #define ZCR_SYNCHRONIZATION_V1_DESTROY_SINCE_VERSION» 1 183 #define ZCR_SYNCHRONIZATION_V1_DESTROY_SINCE_VERSION 1
172 /** 184 /**
173 * @ingroup iface_zcr_synchronization_v1 185 * @ingroup iface_zcr_synchronization_v1
174 */ 186 */
175 #define ZCR_SYNCHRONIZATION_V1_SET_ACQUIRE_FENCE_SINCE_VERSION» 1 187 #define ZCR_SYNCHRONIZATION_V1_SET_ACQUIRE_FENCE_SINCE_VERSION 1
176 188
177 /** @ingroup iface_zcr_synchronization_v1 */ 189 /** @ingroup iface_zcr_synchronization_v1 */
178 static inline void 190 static inline void
179 zcr_synchronization_v1_set_user_data(struct zcr_synchronization_v1 *zcr_synchron ization_v1, void *user_data) 191 zcr_synchronization_v1_set_user_data(struct zcr_synchronization_v1 *zcr_synchron ization_v1, void *user_data)
180 { 192 {
181 wl_proxy_set_user_data((struct wl_proxy *) zcr_synchronization_v1, user_ data); 193 wl_proxy_set_user_data((struct wl_proxy *) zcr_synchronization_v1, user_ data);
182 } 194 }
183 195
184 /** @ingroup iface_zcr_synchronization_v1 */ 196 /** @ingroup iface_zcr_synchronization_v1 */
185 static inline void * 197 static inline void *
(...skipping 23 matching lines...) Expand all
209 } 221 }
210 222
211 /** 223 /**
212 * @ingroup iface_zcr_synchronization_v1 224 * @ingroup iface_zcr_synchronization_v1
213 * 225 *
214 * Set the acquire fence that must be signaled before the compositor 226 * Set the acquire fence that must be signaled before the compositor
215 * is allowed to read the pixels in the pending wl_buffer. 227 * is allowed to read the pixels in the pending wl_buffer.
216 * 228 *
217 * The acquire state is double-buffered state, and will be applied on 229 * The acquire state is double-buffered state, and will be applied on
218 * the next wl_surface.commit. 230 * the next wl_surface.commit.
231 *
232 * If the fence could not be imported, an INVALID_FENCE error is signaled
233 * to the client.
219 */ 234 */
220 static inline void 235 static inline void
221 zcr_synchronization_v1_set_acquire_fence(struct zcr_synchronization_v1 *zcr_sync hronization_v1, int32_t fd) 236 zcr_synchronization_v1_set_acquire_fence(struct zcr_synchronization_v1 *zcr_sync hronization_v1, int32_t fd)
222 { 237 {
223 wl_proxy_marshal((struct wl_proxy *) zcr_synchronization_v1, 238 wl_proxy_marshal((struct wl_proxy *) zcr_synchronization_v1,
224 ZCR_SYNCHRONIZATION_V1_SET_ACQUIRE_FENCE, fd); 239 ZCR_SYNCHRONIZATION_V1_SET_ACQUIRE_FENCE, fd);
225 } 240 }
226 241
227 #ifdef __cplusplus 242 #ifdef __cplusplus
228 } 243 }
229 #endif 244 #endif
230 245
231 #endif 246 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698