drm_hwcomposer: limit maximum depth of frame worker queue

Each element of the queue requires use of limited resources
(file descriptors). If the queue doesn't get throttled when
frame worker is not getting scheduled to consume the elements
from it then  it can quickly reach max fd limit and cause
unexpected behavior such as system crash.

Test: run cts including CtsMediaTestCases
Bug: 31594201
Change-Id: I77345ae66da5675f4214f42f0c5bfb773bf5fd3f
(cherry picked from commit ff717ff5b00180242041c0bd74d4e26dcfb2d260)
1 file changed