Bug 1654901 - Make WR primitives invisible when failing to prepare for rendering r=gw
Bug 1654901 - Make WR primitives invisible when failing to prepare for rendering r=gw

the problem was that paths that determined visibility were not switching it off
on the primitive instance. Now it's moved one level higher.

Differential Revision: https://phabricator.services.mozilla.com/D84762

[ghsync] From https://hg.mozilla.org/mozilla-central/rev/5e5b664a9b5ecba443472c38b1100bae3ab55c9e

servo/webrender,servo/webrender,servo/webrender,servo/webrender,servo/webrender,servo/webrender