Specialize media_constraints::DiscreteSet<bool>::is_universal()
It is easy to produce explicit universal cases for discrete sets of
boolean values since there are only to possible values.
This CL adds an specialization so that the common case of a set with
{true,false} is considered universal.
This helps simplify some of the constraints processing code for audio,
which contains many boolean properties.
Bug: 731170
Change-Id: Ie7cd41a161f9de93fbc13273d44d2cccaa217522
Reviewed-on: https://chromium-review.googlesource.com/c/1299004Reviewed-by:
Henrik Boström <hbos@chromium.org>
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/master@{#603056}
Showing
Please register or sign in to comment