compositor: Avoid using weston_log() in weston_view_is_opaque()

As from commit b7e5f10bf4, weston_view_is_opaque() is called from
debug_scene_graph_cb(), which on its own represents a (different)
scope. By default, we already have a subscriber for the 'log' scope,
which will cause a harmless, yet spurious, message.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2020-08-21 13:57:54 +03:00
parent a24a326bb1
commit 67b382ccdc
1 changed files with 1 additions and 3 deletions

View File

@ -1888,10 +1888,8 @@ weston_view_is_opaque(struct weston_view *ev, pixman_region32_t *region)
if (ev->surface->is_opaque)
return true;
if (ev->transform.dirty) {
weston_log("%s: transform dirty", __func__);
if (ev->transform.dirty)
return false;
}
pixman_region32_init(&r);
pixman_region32_subtract(&r, region, &ev->transform.opaque);