Previous implementation uses a fixed 1080p@30fps configuration and query if GPU factory supports that. As a result, the level of HEVC reported in
SDP offer/answer is always 3.1.
Switch to iterate over the profiles/resolutions reported from GPU factory and use that to create supported format lists for HEVC.
Bug: 41480904, 368478704
Change-Id: I8bf895a734789299cda7faad70e6d840025ffedb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5880164
Reviewed-by: Eugene Zemtsov <eugene@chromium.org>
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Antonio Rivera <antoniori@google.com>
Commit-Queue: Jianlin Qiu <jianlin.qiu@intel.com>
Cr-Commit-Position: refs/heads/main@{#1370549}