summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDerek Foreman <derek.foreman@collabora.com>2023-06-21 13:15:10 -0500
committerDerek Foreman <derek.foreman@collabora.com>2023-07-11 07:26:43 -0500
commitf7ddaa142abacfaf5e60a12723ae2925084dc7e9 (patch)
tree042bd1e2fc0dab2bc10388625a4385159e951a08 /include
parentf07af89f9ceec0cdb3d3928ce581e1ce731382a3 (diff)
libweston: Replace weston_output_damage() with a flag
In the future we'd like to have multiple overlapping outputs. weston_output_damage() currently adds damage to the output's coordinates on the primary plane. This plane is shared between all outputs, so it would result in damaging more than the intended output. Eventually, plane damage will go away and be replaced by paint node damage, and damaging the entire output would involve adding damage to a list of paint nodes. Instead, use a flag to indicate the output must be fully redrawn, and add the damage during the repaint loop. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/libweston/libweston.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libweston/libweston.h b/include/libweston/libweston.h
index 2985a99f..150c9001 100644
--- a/include/libweston/libweston.h
+++ b/include/libweston/libweston.h
@@ -484,6 +484,9 @@ struct weston_output {
* if set, a repaint will eventually occur. */
bool repaint_needed;
+ /** True if the entire contents of the output should be redrawn */
+ bool full_repaint_needed;
+
/** Used only between repaint_begin and repaint_cancel. */
bool repainted;