Simon Ser
a4ccca0834
scene: add support for direct scan-out
...
Check if only a single node intersects with the output viewport
and all of its properties match. In this case, attempt direct
scan-out.
3 years ago
Simon Ser
db4c93028d
scene: add wlr_scene_output_for_each_surface
...
This allows compositors to more easily implement sending
wl_surface.frame callback done events.
3 years ago
Simon Ser
f7ea33da0a
scene: remove surface commit listener when node is destroyed
3 years ago
Isaac Freund
4fae8f7be3
scene: add functions to place node on top/bottom
...
These are very common operations for compositors (including tinywl)
to perform.
3 years ago
Isaac Freund
2a8d385386
scene: assert that node != sibling in place above/below
...
Currently these functions remove the node from the scene if the sibling
argument is the same node as the node. To prevent confusion when
misusing this API, assert that the nodes are distinct and document this.
3 years ago
Simon Ser
3c26244340
scene: add wlr_scene_buffer_set_transform
3 years ago
Simon Ser
43833fba64
scene: add wlr_scene_buffer_set_dest_size
3 years ago
Simon Ser
3d4afbe945
scene: use scene_node_get_size in wlr_scene_node_at
...
This allows to unify the RECT and BUFFER code-paths. The BUFFER one
will become more complicated with destination size and transforms.
3 years ago
Simon Ser
27b529f8a0
scene: add scene_node_get_size helper
3 years ago
Simon Ser
63040d6744
scene: add wlr_scene_buffer_set_source_box
3 years ago
Simon Ser
7939bf8cc6
scene: add wlr_scene_buffer
...
This new scene-graph node displays a wlr_buffer.
Closes: https://github.com/swaywm/wlroots/issues/3161
3 years ago
Simon Ser
f6f0e010d1
scene: unify intersection logic in wlr_scene_node_at
...
Let's extract the common bits.
3 years ago
Simon Ser
b25759cd20
scene: drop default case in wlr_scene_node_at
...
This allows the compiler to error out if we haven't enumerated all
of the cases. This is useful to avoid a missing implementation when
adding a new node type.
3 years ago
Simon Ser
2e590026e9
scene: add wlr_scene_subsurface_tree_create
3 years ago
Simon Ser
211b3b760e
scene: add wlr_scene_tree
3 years ago
Simon Ser
a181a37b12
scene: add wlr_scene_attach_output_layout
...
This is a helper to integrate wlr_scene with wlr_output_layout.
3 years ago
Simon Ser
7832005a1f
scene: move source to subdir
...
This will allow more scene-graph extensions to be added without
cluttering wlr_scene.c, for instance for sub-surface handling and
wlr_output_layout integration.
3 years ago