Rewrite SelectSettingsVideoDeviceCapture()
The rewrite simplifies the code and serves as preparation for addition of resizeMode support. The only behavior change is in tie-breaking among candidates that are equally good at satisfying constraints. The new approach uses a single tie braking distance that combines the ideal value and the allowed range, whereas the old code used separate distances for allowed ranges and ideal values. This CL is in preparation for resizeMode support. Bug: 854980 Change-Id: Ie90d5aa8fe029ca1848bf19c232523bab91beadf Reviewed-on: https://chromium-review.googlesource.com/c/1277797Reviewed-by:Henrik Boström <hbos@chromium.org> Commit-Queue: Guido Urdaneta <guidou@chromium.org> Cr-Commit-Position: refs/heads/master@{#600365}
Showing
This diff is collapsed.
Please register or sign in to comment