[getUserMedia] Simplify constraints processing on applyConstraints.
When applyConstraints is called on a track, the capabilities are limited to what the settings already set on the track. This also means that the constraints algorithm needs to guarantee that the same processing-properties type is selected. So far, we have done so by allowing a single processing-properties group to be initialized when the capabilities are set. This approach is, however, incompatible with applyConstraints reconfiguration. This CL guarantees the same requirements, but simplifying the logic and always initializing all the processing-based groups for processing. It also adds the possibility to inspect the processing type selected by returning the extra field when the select-settings algorithm is run. BUG=796964 Change-Id: Ib34f7d33eb3aa8e1460aebcda20941df0503fa62 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1847275 Commit-Queue: Armando Miraglia <armax@chromium.org> Reviewed-by:Guido Urdaneta <guidou@chromium.org> Cr-Commit-Position: refs/heads/master@{#707385}
Showing
Please register or sign in to comment