compositor: Skip the background when not visible
authorNirbheek Chauhan <nirbheek@centricular.com>
Sun, 26 May 2019 15:30:12 +0000 (17:30 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 9 Aug 2019 19:11:11 +0000 (20:11 +0100)
commit3201abcc94ca10ecf8b5fc9611bb72d08fc616cd
treea7c351b7e4ed833caeb8ba5632ccfe5fce1e9fad
parentc6bdac84bea22a140b18725dbe6e3a9d41f58da9
compositor: Skip the background when not visible

We don't need to waste time drawing the background when one of the
pads completely covers the output and there's no alpha on the pad or
in the video format. Speedups:

I420 1080p ! compositor ! fakesink - 72% faster
I420 1080p ! compositor background=black ! fakesink - 45% faster
gst/compositor/compositor.c