Skip to content

shaped-texture: Add debug paint overlay for opaque regions

Robert Mader requested to merge rmader/mutter:paint_opaque_regions into master

From the last commit:

Using opaque painting paths can have a big impact on painting performance.
In order to easily validate whether we use the opaque paths, add a opaque
(green) or blended (purple) overlay over painted areas if the
`META_DEBUG_PAINT_OPAQUE_REGION` `MetaDebugPaintFlag` is set.

You can do so in `lg` via:
`Meta.add_debug_paint_flag(Meta.DebugPaintFlag.OPAQUE_REGION)`

This can be helpful for application developers, as previously it was not
trivial to check whether e.g. Wayland or X11 opaque regions where
properly set.

This is how it looks like: opaque_region_overlay

Context:

https://bugzilla.mozilla.org/show_bug.cgi?id=1617002

https://mozillagfx.wordpress.com/2019/10/22/dramatically-reduced-power-usage-in-firefox-70-on-macos-with-core-animation/

Edited by Robert Mader

Merge request reports