| Index: third_party/wayland-protocols/include/protocol/explicit-fencing-unstable-v1-client-protocol.h
|
| diff --git a/third_party/wayland-protocols/include/protocol/explicit-fencing-unstable-v1-client-protocol.h b/third_party/wayland-protocols/include/protocol/explicit-fencing-unstable-v1-client-protocol.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..301a5ad1fd6f0928f9a1f65a6d2325940bb1d994
|
| --- /dev/null
|
| +++ b/third_party/wayland-protocols/include/protocol/explicit-fencing-unstable-v1-client-protocol.h
|
| @@ -0,0 +1,265 @@
|
| +/* Generated by wayland-scanner 1.11.90 */
|
| +
|
| +#ifndef LINUX_EXPLICIT_SYNCHRONIZATION_UNSTABLE_V1_CLIENT_PROTOCOL_H
|
| +#define LINUX_EXPLICIT_SYNCHRONIZATION_UNSTABLE_V1_CLIENT_PROTOCOL_H
|
| +
|
| +#include <stdint.h>
|
| +#include <stddef.h>
|
| +#include "wayland-client.h"
|
| +
|
| +#ifdef __cplusplus
|
| +extern "C" {
|
| +#endif
|
| +
|
| +/**
|
| + * @page page_linux_explicit_synchronization_unstable_v1 The linux_explicit_synchronization_unstable_v1 protocol
|
| + * Protocol for explicit synchronization
|
| + *
|
| + * @section page_desc_linux_explicit_synchronization_unstable_v1 Description
|
| + *
|
| + * This protocol specifies a set of interfaces used to provide explicit
|
| + * synchronization of buffers to the the client.
|
| + *
|
| + * Warning! The protocol described in this file is experimental and backward
|
| + * incompatible changes may be made. Backward compatible changes may be added
|
| + * together with the corresponding interface version bump. Backward
|
| + * incompatible changes are done by bumping the version number in the protocol
|
| + * and interface names and resetting the interface version. Once the protocol
|
| + * is to be declared stable, the version number in the protocol is removed and
|
| + * the interface version number is reset.
|
| + *
|
| + * @section page_ifaces_linux_explicit_synchronization_unstable_v1 Interfaces
|
| + * - @subpage page_iface_zcr_linux_explicit_fencing_v1 - Protocol for providing explicit fencing support
|
| + * - @subpage page_iface_zcr_explicit_fenced_surface_v1 -
|
| + * @section page_copyright_linux_explicit_synchronization_unstable_v1 Copyright
|
| + * <pre>
|
| + *
|
| + * Copyright 2016 The Chromium Authors.
|
| + *
|
| + * Permission is hereby granted, free of charge, to any person obtaining a
|
| + * copy of this software and associated documentation files (the "Software"),
|
| + * to deal in the Software without restriction, including without limitation
|
| + * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
| + * and/or sell copies of the Software, and to permit persons to whom the
|
| + * Software is furnished to do so, subject to the following conditions:
|
| + *
|
| + * The above copyright notice and this permission notice (including the next
|
| + * paragraph) shall be included in all copies or substantial portions of the
|
| + * Software.
|
| + *
|
| + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
| + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
| + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
| + * DEALINGS IN THE SOFTWARE.
|
| + * </pre>
|
| + */
|
| +struct wl_surface;
|
| +struct zcr_explicit_fenced_surface_v1;
|
| +struct zcr_linux_explicit_fencing_v1;
|
| +
|
| +/**
|
| + * @page page_iface_zcr_linux_explicit_fencing_v1 zcr_linux_explicit_fencing_v1
|
| + * @section page_iface_zcr_linux_explicit_fencing_v1_desc Description
|
| + *
|
| + * The global interface that allows clients to subscribe for explicit
|
| + * synchronization fences for given wl_surface.
|
| + * @section page_iface_zcr_linux_explicit_fencing_v1_api API
|
| + * See @ref iface_zcr_linux_explicit_fencing_v1.
|
| + */
|
| +/**
|
| + * @defgroup iface_zcr_linux_explicit_fencing_v1 The zcr_linux_explicit_fencing_v1 interface
|
| + *
|
| + * The global interface that allows clients to subscribe for explicit
|
| + * synchronization fences for given wl_surface.
|
| + */
|
| +extern const struct wl_interface zcr_linux_explicit_fencing_v1_interface;
|
| +/**
|
| + * @page page_iface_zcr_explicit_fenced_surface_v1 zcr_explicit_fenced_surface_v1
|
| + * @section page_iface_zcr_explicit_fenced_surface_v1_api API
|
| + * See @ref iface_zcr_explicit_fenced_surface_v1.
|
| + */
|
| +/**
|
| + * @defgroup iface_zcr_explicit_fenced_surface_v1 The zcr_explicit_fenced_surface_v1 interface
|
| + */
|
| +extern const struct wl_interface zcr_explicit_fenced_surface_v1_interface;
|
| +
|
| +#ifndef ZCR_LINUX_EXPLICIT_FENCING_V1_ERROR_ENUM
|
| +#define ZCR_LINUX_EXPLICIT_FENCING_V1_ERROR_ENUM
|
| +enum zcr_linux_explicit_fencing_v1_error {
|
| + /**
|
| + * the surface already has an fencing object associated
|
| + */
|
| + ZCR_LINUX_EXPLICIT_FENCING_V1_ERROR_FENCING_EXISTS = 0,
|
| +};
|
| +#endif /* ZCR_LINUX_EXPLICIT_FENCING_V1_ERROR_ENUM */
|
| +
|
| +#define ZCR_LINUX_EXPLICIT_FENCING_V1_DESTROY 0
|
| +#define ZCR_LINUX_EXPLICIT_FENCING_V1_GET_FENCING 1
|
| +
|
| +/**
|
| + * @ingroup iface_zcr_linux_explicit_fencing_v1
|
| + */
|
| +#define ZCR_LINUX_EXPLICIT_FENCING_V1_DESTROY_SINCE_VERSION 1
|
| +/**
|
| + * @ingroup iface_zcr_linux_explicit_fencing_v1
|
| + */
|
| +#define ZCR_LINUX_EXPLICIT_FENCING_V1_GET_FENCING_SINCE_VERSION 1
|
| +
|
| +/** @ingroup iface_zcr_linux_explicit_fencing_v1 */
|
| +static inline void
|
| +zcr_linux_explicit_fencing_v1_set_user_data(struct zcr_linux_explicit_fencing_v1 *zcr_linux_explicit_fencing_v1, void *user_data)
|
| +{
|
| + wl_proxy_set_user_data((struct wl_proxy *) zcr_linux_explicit_fencing_v1, user_data);
|
| +}
|
| +
|
| +/** @ingroup iface_zcr_linux_explicit_fencing_v1 */
|
| +static inline void *
|
| +zcr_linux_explicit_fencing_v1_get_user_data(struct zcr_linux_explicit_fencing_v1 *zcr_linux_explicit_fencing_v1)
|
| +{
|
| + return wl_proxy_get_user_data((struct wl_proxy *) zcr_linux_explicit_fencing_v1);
|
| +}
|
| +
|
| +static inline uint32_t
|
| +zcr_linux_explicit_fencing_v1_get_version(struct zcr_linux_explicit_fencing_v1 *zcr_linux_explicit_fencing_v1)
|
| +{
|
| + return wl_proxy_get_version((struct wl_proxy *) zcr_linux_explicit_fencing_v1);
|
| +}
|
| +
|
| +/**
|
| + * @ingroup iface_zcr_linux_explicit_fencing_v1
|
| + *
|
| + * Destroy this explicit synchronization object. Existing explicit
|
| + * synchronization objects shall not be affected by this request.
|
| + */
|
| +static inline void
|
| +zcr_linux_explicit_fencing_v1_destroy(struct zcr_linux_explicit_fencing_v1 *zcr_linux_explicit_fencing_v1)
|
| +{
|
| + wl_proxy_marshal((struct wl_proxy *) zcr_linux_explicit_fencing_v1,
|
| + ZCR_LINUX_EXPLICIT_FENCING_V1_DESTROY);
|
| +
|
| + wl_proxy_destroy((struct wl_proxy *) zcr_linux_explicit_fencing_v1);
|
| +}
|
| +
|
| +/**
|
| + * @ingroup iface_zcr_linux_explicit_fencing_v1
|
| + *
|
| + * Instantiate an interface extension for the given wl_surface to
|
| + * provide explicit fencing. If the given wl_surface already has
|
| + * an explicit fencing object associated, the fencing_exists
|
| + * protocol error is raised.
|
| + *
|
| + * Please see the zcr_explicit_fenced_surface_v1 protocol description
|
| + * for details of how this affects the behaviour of the wl_surface it
|
| + * is created against.
|
| + */
|
| +static inline struct zcr_explicit_fenced_surface_v1 *
|
| +zcr_linux_explicit_fencing_v1_get_fencing(struct zcr_linux_explicit_fencing_v1 *zcr_linux_explicit_fencing_v1, struct wl_surface *surface)
|
| +{
|
| + struct wl_proxy *id;
|
| +
|
| + id = wl_proxy_marshal_constructor((struct wl_proxy *) zcr_linux_explicit_fencing_v1,
|
| + ZCR_LINUX_EXPLICIT_FENCING_V1_GET_FENCING, &zcr_explicit_fenced_surface_v1_interface, NULL, surface);
|
| +
|
| + return (struct zcr_explicit_fenced_surface_v1 *) id;
|
| +}
|
| +
|
| +/**
|
| + * @ingroup iface_zcr_explicit_fenced_surface_v1
|
| + * @struct zcr_explicit_fenced_surface_v1_listener
|
| + */
|
| +struct zcr_explicit_fenced_surface_v1_listener {
|
| + /**
|
| + * present fence changed
|
| + *
|
| + * Provides client with a fence that will be signaled at the
|
| + * vsync when the result of composition of last frame appear.
|
| + * @param fd fence fd
|
| + */
|
| + void (*present)(void *data,
|
| + struct zcr_explicit_fenced_surface_v1 *zcr_explicit_fenced_surface_v1,
|
| + int32_t fd);
|
| +};
|
| +
|
| +/**
|
| + * @ingroup zcr_explicit_fenced_surface_v1_iface
|
| + */
|
| +static inline int
|
| +zcr_explicit_fenced_surface_v1_add_listener(struct zcr_explicit_fenced_surface_v1 *zcr_explicit_fenced_surface_v1,
|
| + const struct zcr_explicit_fenced_surface_v1_listener *listener, void *data)
|
| +{
|
| + return wl_proxy_add_listener((struct wl_proxy *) zcr_explicit_fenced_surface_v1,
|
| + (void (**)(void)) listener, data);
|
| +}
|
| +
|
| +#define ZCR_EXPLICIT_FENCED_SURFACE_V1_DESTROY 0
|
| +#define ZCR_EXPLICIT_FENCED_SURFACE_V1_SET_ACQUIRE_FENCE 1
|
| +
|
| +/**
|
| + * @ingroup iface_zcr_explicit_fenced_surface_v1
|
| + */
|
| +#define ZCR_EXPLICIT_FENCED_SURFACE_V1_DESTROY_SINCE_VERSION 1
|
| +/**
|
| + * @ingroup iface_zcr_explicit_fenced_surface_v1
|
| + */
|
| +#define ZCR_EXPLICIT_FENCED_SURFACE_V1_SET_ACQUIRE_FENCE_SINCE_VERSION 1
|
| +
|
| +/** @ingroup iface_zcr_explicit_fenced_surface_v1 */
|
| +static inline void
|
| +zcr_explicit_fenced_surface_v1_set_user_data(struct zcr_explicit_fenced_surface_v1 *zcr_explicit_fenced_surface_v1, void *user_data)
|
| +{
|
| + wl_proxy_set_user_data((struct wl_proxy *) zcr_explicit_fenced_surface_v1, user_data);
|
| +}
|
| +
|
| +/** @ingroup iface_zcr_explicit_fenced_surface_v1 */
|
| +static inline void *
|
| +zcr_explicit_fenced_surface_v1_get_user_data(struct zcr_explicit_fenced_surface_v1 *zcr_explicit_fenced_surface_v1)
|
| +{
|
| + return wl_proxy_get_user_data((struct wl_proxy *) zcr_explicit_fenced_surface_v1);
|
| +}
|
| +
|
| +static inline uint32_t
|
| +zcr_explicit_fenced_surface_v1_get_version(struct zcr_explicit_fenced_surface_v1 *zcr_explicit_fenced_surface_v1)
|
| +{
|
| + return wl_proxy_get_version((struct wl_proxy *) zcr_explicit_fenced_surface_v1);
|
| +}
|
| +
|
| +/**
|
| + * @ingroup iface_zcr_explicit_fenced_surface_v1
|
| + *
|
| + * Destroy this explicit synchronization object.
|
| + */
|
| +static inline void
|
| +zcr_explicit_fenced_surface_v1_destroy(struct zcr_explicit_fenced_surface_v1 *zcr_explicit_fenced_surface_v1)
|
| +{
|
| + wl_proxy_marshal((struct wl_proxy *) zcr_explicit_fenced_surface_v1,
|
| + ZCR_EXPLICIT_FENCED_SURFACE_V1_DESTROY);
|
| +
|
| + wl_proxy_destroy((struct wl_proxy *) zcr_explicit_fenced_surface_v1);
|
| +}
|
| +
|
| +/**
|
| + * @ingroup iface_zcr_explicit_fenced_surface_v1
|
| + *
|
| + * Set the acquire fence that must be signaled before the compositor
|
| + * is allowed to read the pixels in the pending wl_buffer.
|
| + *
|
| + * The acquire state is double-buffered state, and will be applied on
|
| + * the next wl_surface.commit.
|
| + */
|
| +static inline void
|
| +zcr_explicit_fenced_surface_v1_set_acquire_fence(struct zcr_explicit_fenced_surface_v1 *zcr_explicit_fenced_surface_v1, int32_t fd)
|
| +{
|
| + wl_proxy_marshal((struct wl_proxy *) zcr_explicit_fenced_surface_v1,
|
| + ZCR_EXPLICIT_FENCED_SURFACE_V1_SET_ACQUIRE_FENCE, fd);
|
| +
|
| + wl_proxy_destroy((struct wl_proxy *) zcr_explicit_fenced_surface_v1);
|
| +}
|
| +
|
| +#ifdef __cplusplus
|
| +}
|
| +#endif
|
| +
|
| +#endif
|
|
|