aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-05-18 22:37:05 -0400
committerAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-05-19 14:24:05 -0400
commit73a656e8ac1523a09323101f95700e8ec388bee6 (patch)
tree02bee63a429efe51d83fccf3a69595394769603f /include/wlr
parent34be5da072ed452be50b6d3664a97cfa5bb62521 (diff)
wlr_scene: Add a function to also specify damage when applying a buffer to wlr_scene_buffer
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_scene.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h
index 4c1f5ea9..033d4cc6 100644
--- a/include/wlr/types/wlr_scene.h
+++ b/include/wlr/types/wlr_scene.h
@@ -304,6 +304,15 @@ void wlr_scene_buffer_set_buffer(struct wlr_scene_buffer *scene_buffer,
struct wlr_buffer *buffer);
/**
+ * Sets the buffer's backing buffer with a custom damage region.
+ *
+ * The damage region is in buffer-local coordinates. If the region is NULL,
+ * the whole buffer node will be damaged.
+ */
+void wlr_scene_buffer_set_buffer_with_damage(struct wlr_scene_buffer *scene_buffer,
+ struct wlr_buffer *buffer, pixman_region32_t *region);
+
+/**
* Set the source rectangle describing the region of the buffer which will be
* sampled to render this node. This allows cropping the buffer.
*