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

Side by Side Diff: third_party/wayland-protocols/include/protocol/vsync-feedback-unstable-v1-client-protocol.h

Issue 2352563002: third_party: Remove deprecated zwp wayland interfaces. (Closed)
Patch Set: rebase Created 4 years, 3 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.11.0 */
2 2
3 #ifndef VSYNC_FEEDBACK_UNSTABLE_V1_CLIENT_PROTOCOL_H 3 #ifndef VSYNC_FEEDBACK_UNSTABLE_V1_CLIENT_PROTOCOL_H
4 #define VSYNC_FEEDBACK_UNSTABLE_V1_CLIENT_PROTOCOL_H 4 #define VSYNC_FEEDBACK_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
(...skipping 14 matching lines...) Expand all
25 * incompatible changes may be made. Backward compatible changes may be added 25 * incompatible changes may be made. Backward compatible changes may be added
26 * together with the corresponding interface version bump. Backward 26 * together with the corresponding interface version bump. Backward
27 * incompatible changes are done by bumping the version number in the protocol 27 * incompatible changes are done by bumping the version number in the protocol
28 * and interface names and resetting the interface version. Once the protocol 28 * and interface names and resetting the interface version. Once the protocol
29 * is to be declared stable, the version number in the protocol is removed and 29 * is to be declared stable, the version number in the protocol is removed and
30 * the interface version number is reset. 30 * the interface version number is reset.
31 * 31 *
32 * @section page_ifaces_vsync_feedback_unstable_v1 Interfaces 32 * @section page_ifaces_vsync_feedback_unstable_v1 Interfaces
33 * - @subpage page_iface_zcr_vsync_feedback_v1 - Protocol for providing vertical synchronization timing 33 * - @subpage page_iface_zcr_vsync_feedback_v1 - Protocol for providing vertical synchronization timing
34 * - @subpage page_iface_zcr_vsync_timing_v1 - 34 * - @subpage page_iface_zcr_vsync_timing_v1 -
35 * - @subpage page_iface_zwp_vsync_feedback_v1 - DEPRECATED
36 * - @subpage page_iface_zwp_vsync_timing_v1 -
37 * @section page_copyright_vsync_feedback_unstable_v1 Copyright 35 * @section page_copyright_vsync_feedback_unstable_v1 Copyright
38 * <pre> 36 * <pre>
39 * 37 *
40 * Copyright 2016 The Chromium Authors. 38 * Copyright 2016 The Chromium Authors.
41 * 39 *
42 * Permission is hereby granted, free of charge, to any person obtaining a 40 * Permission is hereby granted, free of charge, to any person obtaining a
43 * copy of this software and associated documentation files (the "Software"), 41 * copy of this software and associated documentation files (the "Software"),
44 * to deal in the Software without restriction, including without limitation 42 * to deal in the Software without restriction, including without limitation
45 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 43 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
46 * and/or sell copies of the Software, and to permit persons to whom the 44 * and/or sell copies of the Software, and to permit persons to whom the
47 * Software is furnished to do so, subject to the following conditions: 45 * Software is furnished to do so, subject to the following conditions:
48 * 46 *
49 * The above copyright notice and this permission notice (including the next 47 * The above copyright notice and this permission notice (including the next
50 * paragraph) shall be included in all copies or substantial portions of the 48 * paragraph) shall be included in all copies or substantial portions of the
51 * Software. 49 * Software.
52 * 50 *
53 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 51 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
54 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 52 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
55 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 53 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
56 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 54 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
57 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 55 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
58 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 56 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
59 * DEALINGS IN THE SOFTWARE. 57 * DEALINGS IN THE SOFTWARE.
60 * </pre> 58 * </pre>
61 */ 59 */
62 struct wl_output; 60 struct wl_output;
63 struct zcr_vsync_feedback_v1; 61 struct zcr_vsync_feedback_v1;
64 struct zcr_vsync_timing_v1; 62 struct zcr_vsync_timing_v1;
65 struct zwp_vsync_feedback_v1;
66 struct zwp_vsync_timing_v1;
67 63
68 /** 64 /**
69 * @page page_iface_zcr_vsync_feedback_v1 zcr_vsync_feedback_v1 65 * @page page_iface_zcr_vsync_feedback_v1 zcr_vsync_feedback_v1
70 * @section page_iface_zcr_vsync_feedback_v1_desc Description 66 * @section page_iface_zcr_vsync_feedback_v1_desc Description
71 * 67 *
72 * The global interface that allows clients to subscribe for vertical 68 * The global interface that allows clients to subscribe for vertical
73 * synchronization timing data for given wl_output. 69 * synchronization timing data for given wl_output.
74 * @section page_iface_zcr_vsync_feedback_v1_api API 70 * @section page_iface_zcr_vsync_feedback_v1_api API
75 * See @ref iface_zcr_vsync_feedback_v1. 71 * See @ref iface_zcr_vsync_feedback_v1.
76 */ 72 */
77 /** 73 /**
78 * @defgroup iface_zcr_vsync_feedback_v1 The zcr_vsync_feedback_v1 interface 74 * @defgroup iface_zcr_vsync_feedback_v1 The zcr_vsync_feedback_v1 interface
79 * 75 *
80 * The global interface that allows clients to subscribe for vertical 76 * The global interface that allows clients to subscribe for vertical
81 * synchronization timing data for given wl_output. 77 * synchronization timing data for given wl_output.
82 */ 78 */
83 extern const struct wl_interface zcr_vsync_feedback_v1_interface; 79 extern const struct wl_interface zcr_vsync_feedback_v1_interface;
84 /** 80 /**
85 * @page page_iface_zcr_vsync_timing_v1 zcr_vsync_timing_v1 81 * @page page_iface_zcr_vsync_timing_v1 zcr_vsync_timing_v1
86 * @section page_iface_zcr_vsync_timing_v1_api API 82 * @section page_iface_zcr_vsync_timing_v1_api API
87 * See @ref iface_zcr_vsync_timing_v1. 83 * See @ref iface_zcr_vsync_timing_v1.
88 */ 84 */
89 /** 85 /**
90 * @defgroup iface_zcr_vsync_timing_v1 The zcr_vsync_timing_v1 interface 86 * @defgroup iface_zcr_vsync_timing_v1 The zcr_vsync_timing_v1 interface
91 */ 87 */
92 extern const struct wl_interface zcr_vsync_timing_v1_interface; 88 extern const struct wl_interface zcr_vsync_timing_v1_interface;
93 /**
94 * @page page_iface_zwp_vsync_feedback_v1 zwp_vsync_feedback_v1
95 * @section page_iface_zwp_vsync_feedback_v1_desc Description
96 *
97 * The global interface that allows clients to subscribe for vertical
98 * synchronization timing data for given wl_output.
99 * @section page_iface_zwp_vsync_feedback_v1_api API
100 * See @ref iface_zwp_vsync_feedback_v1.
101 */
102 /**
103 * @defgroup iface_zwp_vsync_feedback_v1 The zwp_vsync_feedback_v1 interface
104 *
105 * The global interface that allows clients to subscribe for vertical
106 * synchronization timing data for given wl_output.
107 */
108 extern const struct wl_interface zwp_vsync_feedback_v1_interface;
109 /**
110 * @page page_iface_zwp_vsync_timing_v1 zwp_vsync_timing_v1
111 * @section page_iface_zwp_vsync_timing_v1_api API
112 * See @ref iface_zwp_vsync_timing_v1.
113 */
114 /**
115 * @defgroup iface_zwp_vsync_timing_v1 The zwp_vsync_timing_v1 interface
116 */
117 extern const struct wl_interface zwp_vsync_timing_v1_interface;
118 89
119 #define ZCR_VSYNC_FEEDBACK_V1_DESTROY 0 90 #define ZCR_VSYNC_FEEDBACK_V1_DESTROY 0
120 #define ZCR_VSYNC_FEEDBACK_V1_GET_VSYNC_TIMING 1 91 #define ZCR_VSYNC_FEEDBACK_V1_GET_VSYNC_TIMING 1
121 92
122 /** 93 /**
123 * @ingroup iface_zcr_vsync_feedback_v1 94 * @ingroup iface_zcr_vsync_feedback_v1
124 */ 95 */
125 #define ZCR_VSYNC_FEEDBACK_V1_DESTROY_SINCE_VERSION 1 96 #define ZCR_VSYNC_FEEDBACK_V1_DESTROY_SINCE_VERSION 1
126 /** 97 /**
127 * @ingroup iface_zcr_vsync_feedback_v1 98 * @ingroup iface_zcr_vsync_feedback_v1
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 */ 237 */
267 static inline void 238 static inline void
268 zcr_vsync_timing_v1_destroy(struct zcr_vsync_timing_v1 *zcr_vsync_timing_v1) 239 zcr_vsync_timing_v1_destroy(struct zcr_vsync_timing_v1 *zcr_vsync_timing_v1)
269 { 240 {
270 wl_proxy_marshal((struct wl_proxy *) zcr_vsync_timing_v1, 241 wl_proxy_marshal((struct wl_proxy *) zcr_vsync_timing_v1,
271 ZCR_VSYNC_TIMING_V1_DESTROY); 242 ZCR_VSYNC_TIMING_V1_DESTROY);
272 243
273 wl_proxy_destroy((struct wl_proxy *) zcr_vsync_timing_v1); 244 wl_proxy_destroy((struct wl_proxy *) zcr_vsync_timing_v1);
274 } 245 }
275 246
276 #define ZWP_VSYNC_FEEDBACK_V1_DESTROY 0
277 #define ZWP_VSYNC_FEEDBACK_V1_GET_VSYNC_TIMING 1
278
279 /**
280 * @ingroup iface_zwp_vsync_feedback_v1
281 */
282 #define ZWP_VSYNC_FEEDBACK_V1_DESTROY_SINCE_VERSION 1
283 /**
284 * @ingroup iface_zwp_vsync_feedback_v1
285 */
286 #define ZWP_VSYNC_FEEDBACK_V1_GET_VSYNC_TIMING_SINCE_VERSION 1
287
288 /** @ingroup iface_zwp_vsync_feedback_v1 */
289 static inline void
290 zwp_vsync_feedback_v1_set_user_data(struct zwp_vsync_feedback_v1 *zwp_vsync_feed back_v1, void *user_data)
291 {
292 wl_proxy_set_user_data((struct wl_proxy *) zwp_vsync_feedback_v1, user_d ata);
293 }
294
295 /** @ingroup iface_zwp_vsync_feedback_v1 */
296 static inline void *
297 zwp_vsync_feedback_v1_get_user_data(struct zwp_vsync_feedback_v1 *zwp_vsync_feed back_v1)
298 {
299 return wl_proxy_get_user_data((struct wl_proxy *) zwp_vsync_feedback_v1) ;
300 }
301
302 static inline uint32_t
303 zwp_vsync_feedback_v1_get_version(struct zwp_vsync_feedback_v1 *zwp_vsync_feedba ck_v1)
304 {
305 return wl_proxy_get_version((struct wl_proxy *) zwp_vsync_feedback_v1);
306 }
307
308 /**
309 * @ingroup iface_zwp_vsync_feedback_v1
310 *
311 * Destroy this vsync feedback object. Existing vsync timing objects shall
312 * not be affected by this request.
313 */
314 static inline void
315 zwp_vsync_feedback_v1_destroy(struct zwp_vsync_feedback_v1 *zwp_vsync_feedback_v 1)
316 {
317 wl_proxy_marshal((struct wl_proxy *) zwp_vsync_feedback_v1,
318 ZWP_VSYNC_FEEDBACK_V1_DESTROY);
319
320 wl_proxy_destroy((struct wl_proxy *) zwp_vsync_feedback_v1);
321 }
322
323 /**
324 * @ingroup iface_zwp_vsync_feedback_v1
325 *
326 * Create a new vsync timing object that represents a subscription to
327 * vertical synchronization timing updates of given wl_output object.
328 *
329 * The newly created object will immediately signal an update to notify
330 * the subscriber of initial timing parameters.
331 */
332 static inline struct zwp_vsync_timing_v1 *
333 zwp_vsync_feedback_v1_get_vsync_timing(struct zwp_vsync_feedback_v1 *zwp_vsync_f eedback_v1, struct wl_output *output)
334 {
335 struct wl_proxy *id;
336
337 id = wl_proxy_marshal_constructor((struct wl_proxy *) zwp_vsync_feedback _v1,
338 ZWP_VSYNC_FEEDBACK_V1_GET_VSYNC_TIMING, &zwp_vsync_timi ng_v1_interface, NULL, output);
339
340 return (struct zwp_vsync_timing_v1 *) id;
341 }
342
343 /**
344 * @ingroup iface_zwp_vsync_timing_v1
345 * @struct zwp_vsync_timing_v1_listener
346 */
347 struct zwp_vsync_timing_v1_listener {
348 /**
349 * vsync timing updated
350 *
351 * Notifies client that vertical synchronization timing of given
352 * wl_output has changed.
353 *
354 * Timing information consists of two data, timebase and interval.
355 * Timebase is an absolute timestamp of the vsync event that caused
356 * the timing to change. Interval is a period of time between
357 * subsequent vsync events.
358 *
359 * The unit of all above mentioned time values shall be
360 * microseconds and absolute timestamps should match the realm of
361 * the primary system monotonic counter, i.e. the POSIX
362 * clock_gettime(CLOCK_MONOTONIC). Data type of both values is
363 * defined to be a 64-bit unsigned integer, but since the biggest
364 * unsigned integer datatype defined by the Wayland protocol is the
365 * 32-bit uint, both timebase and interval are split into most
366 * significant and least significant part, suffixed by "_h" and
367 * "_l" respectively.
368 * @param timebase_l new vsync timebase (lower 32 bits)
369 * @param timebase_h new vsync timebase (upper 32 bits)
370 * @param interval_l new vsync interval (lower 32 bits)
371 * @param interval_h new vsync interval (upper 32 bits)
372 */
373 void (*update)(void *data,
374 struct zwp_vsync_timing_v1 *zwp_vsync_timing_v1,
375 uint32_t timebase_l,
376 uint32_t timebase_h,
377 uint32_t interval_l,
378 uint32_t interval_h);
379 };
380
381 /**
382 * @ingroup zwp_vsync_timing_v1_iface
383 */
384 static inline int
385 zwp_vsync_timing_v1_add_listener(struct zwp_vsync_timing_v1 *zwp_vsync_timing_v1 ,
386 const struct zwp_vsync_timing_v1_listener *list ener, void *data)
387 {
388 return wl_proxy_add_listener((struct wl_proxy *) zwp_vsync_timing_v1,
389 (void (**)(void)) listener, data);
390 }
391
392 #define ZWP_VSYNC_TIMING_V1_DESTROY 0
393
394 /**
395 * @ingroup iface_zwp_vsync_timing_v1
396 */
397 #define ZWP_VSYNC_TIMING_V1_DESTROY_SINCE_VERSION 1
398
399 /** @ingroup iface_zwp_vsync_timing_v1 */
400 static inline void
401 zwp_vsync_timing_v1_set_user_data(struct zwp_vsync_timing_v1 *zwp_vsync_timing_v 1, void *user_data)
402 {
403 wl_proxy_set_user_data((struct wl_proxy *) zwp_vsync_timing_v1, user_dat a);
404 }
405
406 /** @ingroup iface_zwp_vsync_timing_v1 */
407 static inline void *
408 zwp_vsync_timing_v1_get_user_data(struct zwp_vsync_timing_v1 *zwp_vsync_timing_v 1)
409 {
410 return wl_proxy_get_user_data((struct wl_proxy *) zwp_vsync_timing_v1);
411 }
412
413 static inline uint32_t
414 zwp_vsync_timing_v1_get_version(struct zwp_vsync_timing_v1 *zwp_vsync_timing_v1)
415 {
416 return wl_proxy_get_version((struct wl_proxy *) zwp_vsync_timing_v1);
417 }
418
419 /**
420 * @ingroup iface_zwp_vsync_timing_v1
421 *
422 * Destroy this vsync timing object.
423 */
424 static inline void
425 zwp_vsync_timing_v1_destroy(struct zwp_vsync_timing_v1 *zwp_vsync_timing_v1)
426 {
427 wl_proxy_marshal((struct wl_proxy *) zwp_vsync_timing_v1,
428 ZWP_VSYNC_TIMING_V1_DESTROY);
429
430 wl_proxy_destroy((struct wl_proxy *) zwp_vsync_timing_v1);
431 }
432
433 #ifdef __cplusplus 247 #ifdef __cplusplus
434 } 248 }
435 #endif 249 #endif
436 250
437 #endif 251 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698