Bug
1738926 Part 2: Stop enqueueing video when the layer gets overwhelmed. r=gfx-reviewers,mstange
There's no point in preparing a video sample when the layer can't accept it.
Limiting the enqueing in this case seems to prevent the macOS WindowServer
from maxxing out the CPU. Instead, the frame will get displayed using the
non-video method of directly setting the layer contents. The user will not
experience an interruption, but the layer will *never* hit detached mode
again. That's an acceptable outcome given that they layer was already
failing to handle the incoming frames and so detached mode was not
being achieved anyway.
Differential Revision: https://phabricator.services.mozilla.com/
D135536