Skip to content
Commit 86ee59bf authored by Sergey Ulanov's avatar Sergey Ulanov Committed by Commit Bot
Browse files

Make device enumeration in VideoCaptureDeviceFactory asynchronous.

Previously VideoCaptureDeviceFactory interface provided
GetDeviceDescriptors() and GetSupportedFormats(). Both were synchronous.
That hasn't worked well on some platforms, particularly on Fuchsia.
Replaced both methods with asynchronous GetDevicesInfo(). The new method
returns device descriptors as well as list formats supported by each
device.

Bug: 1072932
Change-Id: If76abbc66db9fee54140a5e352eb0f8fd39f3294
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2306918


Commit-Queue: Sergey Ulanov <sergeyu@chromium.org>
Reviewed-by: default avatarGuido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791485}
parent fb62552d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment