From 9c17cba0b29979ae23c4521b884f7419fd558770 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Mon, 4 Dec 2023 06:33:57 -0500 Subject: renderer: Render scene_graph --- include/sway/output.h | 3 --- include/sway/scene_descriptor.h | 1 + include/sway/server.h | 2 -- include/sway/surface.h | 14 -------------- 4 files changed, 1 insertion(+), 19 deletions(-) (limited to 'include') diff --git a/include/sway/output.h b/include/sway/output.h index 691ac8dd..b35f1366 100644 --- a/include/sway/output.h +++ b/include/sway/output.h @@ -41,7 +41,6 @@ struct sway_output { struct wl_list shell_layers[4]; // sway_layer_surface::link struct wlr_box usable_area; - struct timespec last_frame; struct wlr_damage_ring damage_ring; int lx, ly; // layout coords @@ -58,9 +57,7 @@ struct sway_output { struct wl_listener destroy; struct wl_listener commit; struct wl_listener present; - struct wl_listener damage; struct wl_listener frame; - struct wl_listener needs_frame; struct wl_listener request_state; struct { diff --git a/include/sway/scene_descriptor.h b/include/sway/scene_descriptor.h index 13ae81a3..9761c2c0 100644 --- a/include/sway/scene_descriptor.h +++ b/include/sway/scene_descriptor.h @@ -11,6 +11,7 @@ #include enum sway_scene_descriptor_type { + SWAY_SCENE_DESC_BUFFER_TIMER, }; bool scene_descriptor_assign(struct wlr_scene_node *node, diff --git a/include/sway/server.h b/include/sway/server.h index b0e8dfd6..f3d25980 100644 --- a/include/sway/server.h +++ b/include/sway/server.h @@ -41,7 +41,6 @@ struct sway_server { struct wlr_allocator *allocator; struct wlr_compositor *compositor; - struct wl_listener compositor_new_surface; struct wlr_linux_dmabuf_v1 *linux_dmabuf_v1; @@ -170,7 +169,6 @@ void server_run(struct sway_server *server); void restore_nofile_limit(void); -void handle_compositor_new_surface(struct wl_listener *listener, void *data); void handle_new_output(struct wl_listener *listener, void *data); void handle_idle_inhibitor_v1(struct wl_listener *listener, void *data); diff --git a/include/sway/surface.h b/include/sway/surface.h index a7a8ec3f..81eb80d5 100644 --- a/include/sway/surface.h +++ b/include/sway/surface.h @@ -2,20 +2,6 @@ #define _SWAY_SURFACE_H #include -struct sway_surface { - struct wlr_surface *wlr_surface; - - struct wl_listener destroy; - - /** - * This timer can be used for issuing delayed frame done callbacks (for - * example, to improve presentation latency). Its handler is set to a - * function that issues a frame done callback to this surface. - */ - struct wl_event_source *frame_done_timer; -}; - -void surface_update_outputs(struct wlr_surface *surface); void surface_enter_output(struct wlr_surface *surface, struct sway_output *output); void surface_leave_output(struct wlr_surface *surface, -- cgit v1.2.3-54-g00ecf