surface: remove wlr_frame_callback

This removes the need to allocate a structure for frame callbacks.
wl_resource_get_link is used instead.
This commit is contained in:
emersion 2018-06-20 20:00:23 +01:00
parent cc89906ddf
commit a6c0e25d36
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 15 additions and 35 deletions

View file

@ -8,11 +8,6 @@
#include <wayland-server.h>
#include <wlr/types/wlr_output.h>
struct wlr_frame_callback {
struct wl_resource *resource;
struct wl_list link;
};
#define WLR_SURFACE_INVALID_BUFFER 1
#define WLR_SURFACE_INVALID_SURFACE_DAMAGE 2
#define WLR_SURFACE_INVALID_BUFFER_DAMAGE 4