Commits on Source (11)
-
Just a trivial wrapper to tell you whether or not the surface has valid content. Signed-off-by: Daniel Stone <daniels@collabora.com>
13ead893 -
Now that we've got a wrapper telling us whether or not the surface has content, just use it. Signed-off-by: Daniel Stone <daniels@collabora.com>
d211e317 -
Now we've got a wrapper which can tell us whether or not a surface has content, use it. Signed-off-by: Daniel Stone <daniels@collabora.com>
888d08d8 -
Now we've got a wrapper which tells us whether or not the surface has valid content, use it. The 'XXX' comment was removed because it's the same pattern as every other surface-role implementor: if the surface is not mapped but does have valid content, then map it. Signed-off-by: Daniel Stone <daniels@collabora.com>
dd6b5a19 -
Used when taking the size from a buffer, as well as in subsurface handling. Signed-off-by: Daniel Stone <daniels@collabora.com>
51fe874a -
Change all instances of surface->is_mapped = true, to a specialised function. Signed-off-by: Daniel Stone <daniels@collabora.com>
0c69688a -
The only caller of map() then manually sets is_mapped = true. Just do it in the function which makes you think that's what it would do. Signed-off-by: Daniel Stone <daniels@collabora.com>
af7dcddd -
The surface always has valid content, hence it can always be mapped. Signed-off-by: Daniel Stone <daniels@collabora.com>
19744a52 -
Make sure we're there when we need them. Signed-off-by: Daniel Stone <daniels@collabora.com>
c0ff9ed2 -
Keep the surface map state in sync with the buffer state: the surface can be mapped it has a valid buffer, and not if it doesn't. Signed-off-by: Daniel Stone <daniels@collabora.com>
f1fe6ec7 -
If a surface or a view is not mapped, then we should not be trying to paint it. Check if this is the case and ensure that we only insert paint nodes for mapped surfaces & views. Signed-off-by: Daniel Stone <daniels@collabora.com> Fixes: #621
f962b489