mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-03 15:57:58 +02:00
simple-timing: Use don't use the frame callback mechanism
commit-timing uses presentation feedback to drive its repaint loop, no need to keep the frame callback. Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
parent
2f5ad2f046
commit
8ba7fb8195
1 changed files with 0 additions and 5 deletions
|
|
@ -89,7 +89,6 @@ struct window {
|
|||
struct xdg_surface *xdg_surface;
|
||||
struct xdg_toplevel *xdg_toplevel;
|
||||
struct wl_list buffer_list;
|
||||
struct wl_callback *callback;
|
||||
struct wp_fifo_v1 *fifo;
|
||||
struct wp_commit_timer_v1 *commit_timer;
|
||||
bool wait_for_configure;
|
||||
|
|
@ -363,7 +362,6 @@ create_window(struct display *display, int width, int height)
|
|||
if (!window)
|
||||
return NULL;
|
||||
|
||||
window->callback = NULL;
|
||||
window->display = display;
|
||||
window->width = width;
|
||||
window->height = height;
|
||||
|
|
@ -410,9 +408,6 @@ destroy_window(struct window *window)
|
|||
{
|
||||
struct buffer *buffer, *buffer_next;
|
||||
|
||||
if (window->callback)
|
||||
wl_callback_destroy(window->callback);
|
||||
|
||||
wl_list_for_each_safe(buffer, buffer_next,
|
||||
&window->buffer_list, buffer_link)
|
||||
destroy_buffer(buffer);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue