Implement monitor repaint in new xrender

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-03-05 20:27:04 +00:00
parent c387a266dc
commit eed5ea719e
4 changed files with 47 additions and 11 deletions

View File

@@ -83,6 +83,10 @@ struct backend_operations {
void (*compose)(backend_t *backend_data, void *image_data, int dst_x, int dst_y,
const region_t *reg_paint, const region_t *reg_visible);
/// Fill rectangle of target, mostly for debug purposes, optional.
void (*fill_rectangle)(backend_t *backend_data, double r, double g, double b, double a,
int x, int y, int width, int height, const region_t *clip);
/// Blur a given region on of the target.
bool (*blur)(backend_t *backend_data, double opacity, const region_t *reg_blur,
const region_t *reg_visible) attr_nonnull(1, 3, 4);