wayland-server: Use wl_resource instead of wl_buffer
wl_buffer has been deprecated in the server API and instead compositors should be directly passing the wl_resource pointer to eglQueryWaylandBuffer. Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit f13278bcf3f1475b7afc7d55a5218f409d119658)
This commit is contained in:
parent
9bbb8a79c3
commit
8392420244
@ -294,12 +294,12 @@ _cogl_egl_texture_2d_new_from_image (CoglContext *ctx,
|
||||
#ifdef COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
|
||||
CoglTexture2D *
|
||||
cogl_wayland_texture_2d_new_from_buffer (CoglContext *ctx,
|
||||
struct wl_resource *buffer_resource,
|
||||
struct wl_resource *buffer,
|
||||
CoglError **error)
|
||||
{
|
||||
struct wl_shm_buffer *shm_buffer;
|
||||
|
||||
shm_buffer = wl_shm_buffer_get (buffer_resource);
|
||||
shm_buffer = wl_shm_buffer_get (buffer);
|
||||
|
||||
if (shm_buffer)
|
||||
{
|
||||
@ -343,7 +343,6 @@ cogl_wayland_texture_2d_new_from_buffer (CoglContext *ctx,
|
||||
}
|
||||
else
|
||||
{
|
||||
struct wl_buffer *buffer = (struct wl_buffer *) buffer_resource;
|
||||
int format, width, height;
|
||||
|
||||
if (_cogl_egl_query_wayland_buffer (ctx,
|
||||
|
@ -88,7 +88,7 @@ COGL_WINSYS_FEATURE_FUNCTION (EGLBoolean, eglUnbindWaylandDisplay,
|
||||
struct wl_display *wayland_display))
|
||||
COGL_WINSYS_FEATURE_FUNCTION (EGLBoolean, eglQueryWaylandBuffer,
|
||||
(EGLDisplay dpy,
|
||||
struct wl_buffer *buffer,
|
||||
struct wl_resource *buffer,
|
||||
EGLint attribute, EGLint *value))
|
||||
COGL_WINSYS_FEATURE_END ()
|
||||
|
||||
|
@ -162,7 +162,7 @@ _cogl_egl_destroy_image (CoglContext *ctx,
|
||||
#ifdef EGL_WL_bind_wayland_display
|
||||
CoglBool
|
||||
_cogl_egl_query_wayland_buffer (CoglContext *ctx,
|
||||
struct wl_buffer *buffer,
|
||||
struct wl_resource *buffer,
|
||||
int attribute,
|
||||
int *value);
|
||||
#endif
|
||||
|
@ -1046,7 +1046,7 @@ _cogl_egl_destroy_image (CoglContext *ctx,
|
||||
#ifdef EGL_WL_bind_wayland_display
|
||||
CoglBool
|
||||
_cogl_egl_query_wayland_buffer (CoglContext *ctx,
|
||||
struct wl_buffer *buffer,
|
||||
struct wl_resource *buffer,
|
||||
int attribute,
|
||||
int *value)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user