aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-06-19 18:17:23 -0400
committerSimon Ser <contact@emersion.fr>2023-06-20 09:04:35 +0000
commit2ac31fc6305364fc2ab9f9706db825b3df366c6f (patch)
tree4406735051d3430cb0faa93425bb8d3a86bb9d8a /include
parent06c0b0a204e36f90e7e1c78d8e67035620fd5516 (diff)
wlr_scene: Introduce wlr_scene_buffer_set_filter_mode
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_scene.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h
index c1b6f130..8013b660 100644
--- a/include/wlr/types/wlr_scene.h
+++ b/include/wlr/types/wlr_scene.h
@@ -22,6 +22,7 @@
#include <pixman.h>
#include <time.h>
#include <wayland-server-core.h>
+#include <wlr/render/wlr_renderer.h>
#include <wlr/types/wlr_damage_ring.h>
#include <wlr/types/wlr_linux_dmabuf_v1.h>
#include <wlr/util/addon.h>
@@ -168,6 +169,7 @@ struct wlr_scene_buffer {
// private state
float opacity;
+ enum wlr_scale_filter_mode filter_mode;
uint64_t active_outputs;
struct wlr_texture *texture;
struct wlr_fbox src_box;
@@ -424,6 +426,12 @@ void wlr_scene_buffer_set_opacity(struct wlr_scene_buffer *scene_buffer,
float opacity);
/**
+* Sets the filter mode to use when scaling the buffer
+*/
+void wlr_scene_buffer_set_filter_mode(struct wlr_scene_buffer *scene_buffer,
+ enum wlr_scale_filter_mode filter_mode);
+
+/**
* Calls the buffer's frame_done signal.
*/
void wlr_scene_buffer_send_frame_done(struct wlr_scene_buffer *scene_buffer,
@@ -455,7 +463,7 @@ bool wlr_scene_output_commit(struct wlr_scene_output *scene_output);
* Render and populate given output state.
*/
bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output,
- struct wlr_output_state *state);
+ struct wlr_output_state *state);
/**
* Call wlr_surface_send_frame_done() on all surfaces in the scene rendered by