aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-12-04 06:33:57 -0500
committerKirill Primak <vyivel@eclair.cafe>2024-01-18 18:36:54 +0300
commit9c17cba0b29979ae23c4521b884f7419fd558770 (patch)
treedb563b9ebcc9eda7afed3e5cd263fb13f531caac /include
parent0e1a02bf0aad3d743985602b55043c5de019d1f0 (diff)
renderer: Render scene_graph
Diffstat (limited to 'include')
-rw-r--r--include/sway/output.h3
-rw-r--r--include/sway/scene_descriptor.h1
-rw-r--r--include/sway/server.h2
-rw-r--r--include/sway/surface.h14
4 files changed, 1 insertions, 19 deletions
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 <wlr/types/wlr_scene.h>
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 <wlr/types/wlr_compositor.h>
-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,