tbm_surface_unmap(buffer->surface);
}
+static struct wl_resource *
+tbm_client_buffer_iface_get_resource(struct ds_buffer *ds_buffer)
+{
+ struct ds_tbm_client_buffer *buffer;
+
+ buffer = tbm_client_buffer_from_buffer(ds_buffer);
+
+ return buffer->resource;
+}
+
static const struct ds_buffer_interface tbm_client_buffer_iface = {
.destroy = tbm_client_buffer_iface_destroy,
.begin_data_ptr_access = tbm_client_buffer_iface_begin_data_ptr_access,
.end_data_ptr_access = tbm_client_buffer_iface_end_ptr_access,
+ .get_resource = tbm_client_buffer_iface_get_resource,
};
static struct ds_tbm_client_buffer *