Commits on Source (16)
-
This doesn't just handle censoring protected content anymore, fix the name and the comments. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
41ff97a0 -
We don't always check allocation failures, so why bother here? Removing this allows simplifying some code in a further patch. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
4be5e79f -
None of these can fail, so let's not return anything from them. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
4a8e8f5e -
We don't need the view, so let's skip the extra indirection. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
101e270f -
And in doing so, pass the paint node instead of a surface and a buffer. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
14599d06 -
We'll flush this during repaint eventually, so there's no need to do it now. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
39d9e67b -
Currently we're passing in a surface, a buffer, and an output. All of these things are available in the paint node. Further, if we pass in the paint node directly, we don't have to walk a list of paint nodes to figure out if the texture is used in the upcoming repaint. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
71079ffd -
For now we're just continuing to make the view dirty, but there will be more dirt in the future. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
e2763565 -
In the future we'll use this, but for now just add the tracking. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
da6622f1 -
Instead of doing this in several places, just do it when we're updating the paint nodes in the repaint loop, or when we're about to copy content via weston_surface_copy_content(). Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
c08a6ff8 -
Since we only call this from the paint node update code now, we can pass the paint node directly. A bit of internal refactoring is required to support copy_content. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
29030188 -
We'll be doing censoring via the paint node update code shortly, so let's make sure we notice when protection changes. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
38487ec7 -
Just moving things around for now. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
35384660 -
These should effectively be the same, thought the one we've calculated may be clipped with the scissor. The end result of the math should be identical. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
b80d4f4c -
We test if the surface is fully opaque during paint node updates, and store that information. Now that we've refactored the blended calculations a little bit, we can easily use this test to make paint_node->is_opaque override the blend calculation entirely. This is preparation for future patches that will override is_opaque when performing content censoring or fallback rendering of solid colors for weston_direct dmabufs. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
8c26480c -
By moving this here we can use the information to disable damage tracking for placeholder surfaces, as well as render them entirely opaquely. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
984d36aa