13
0

Allow to disable cairo render groups (performance test)

This commit is contained in:
Robin Gareus 2023-01-06 21:15:43 +01:00
parent b27467157b
commit 3ae7295142
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -76,6 +76,9 @@ Container::compute_bounding_box () const
void void
Container::set_render_with_alpha (double alpha) Container::set_render_with_alpha (double alpha)
{ {
if (alpha == 1.0 && NULL != g_getenv("ARDOUR_NO_OPAQUE_RENDER_GROUP")) {
alpha = -1; // disable render group when fully opaque
}
if (_render_with_alpha == alpha) { if (_render_with_alpha == alpha) {
return; return;
} }