blob: 2a11a21e65e806f4c42dba6e7d91db1a46ba5a9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef _FX_EFFECT_FRAMEBUFFERS_H
#define _FX_EFFECT_FRAMEBUFFERS_H
#include <wlr/types/wlr_output.h>
#include <wlr/util/addon.h>
/**
* Used to add effect framebuffers per output instead of every output sharing
* them.
*/
struct fx_effect_framebuffers {
struct wlr_addon addon;
// Contains the blurred background for tiled windows
struct fx_framebuffer *optimized_blur_buffer;
// Contains the original pixels to draw over the areas where artifact are visible
struct fx_framebuffer *blur_saved_pixels_buffer;
// Blur swaps between the two effects buffers everytime it scales the image
// Buffer used for effects
struct fx_framebuffer *effects_buffer;
// Swap buffer used for effects
struct fx_framebuffer *effects_buffer_swapped;
bool blur_buffer_dirty;
// The region where there's blur
pixman_region32_t blur_padding_region;
};
struct fx_effect_framebuffers *fx_effect_framebuffers_try_get(struct wlr_output *output);
#endif
|