Skip to content
Commit e2426960 authored by Michael Olbrich's avatar Michael Olbrich Committed by Daniel Stone
Browse files

compositor: set transform.opaque for surfaces without alpha channel



If surface->is_opaque is set then we can assume that the whole surface is
opaque. In the trivial case (no transformation or translation only) this means
that transform.boundingbox is exactly the view area and is fully opaque. So it
can be used for transform.opaque.

This is important because damage calculation uses transform.opaque. Without
this, anything underneath a surface without an explicit opaque region but a
pixel format without alpha channel is drawn unnecessarily.

Signed-off-by: default avatarMichael Olbrich <m.olbrich@pengutronix.de>
parent dfceb602
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment