Commits on Source (7)
-
Daniel Stone authored
Signed-off-by: Daniel Stone <daniels@collabora.com>
f6d81e42 -
Daniel Stone authored
There's no reason for it to belong in attach, really. Signed-off-by: Daniel Stone <daniels@collabora.com>
4863ee5e -
Daniel Stone authored
Akin to the paint_node_status we already have, start also tracking a surface dirty status. This will allow us to minimise the updates we need to make. Currently this is only collected, with no functional change made. Signed-off-by: Daniel Stone <daniels@collabora.com>
8532c287 -
Daniel Stone authored
Rebuilding regions can be an expensive operation, and we're adding more of them. This means we need to be clever about when we actually do them. Only dirty the paint nodes when the transform or buffer size has actually changed, not on every commit. Signed-off-by: Daniel Stone <daniels@collabora.com>
ead8bd5f -
Daniel Stone authored
We already calculate the dirty flags, so just check those instead of their component bools. Signed-off-by: Daniel Stone <daniels@collabora.com>
406b31f9 -
Daniel Stone authored
Pull the buffer-size calculation in when we attach a new buffer. This will be able to save us from doing the calculation at all in some cases. Signed-off-by: Daniel Stone <daniels@collabora.com>
a994e02a -
Daniel Stone authored
attach needs to consider the viewport as well, so it makes more sense for attach to consistently access the weston_surface_state, rather than part from the surface and part from a function argument. Signed-off-by: Daniel Stone <daniels@collabora.com>
3100d363