[Video Capture Service] Keep VideoCaptureSystemImpl instance alive to avoid losing cached formats
The video capture service is designed to release resources and shut down when not in use. However, this leads to information about supported formats of the available devices, which is otherwise cached, having to be re-queried. On some platforms, in particular on Android, querying these formats can take a long time (i.e. several seconds). This CL changes the video capture service such that it holds on to the cached formats until the service is shut down. Before, this cache would be released as soon as the last client has disconnected, even if a client reconnects within the service shutdown timeout of 5 seconds. This fixes increased delay of camera capture start observed on Android. Bug: 878304, 792621 Change-Id: I8279e73d093006cf46f64c3a8cb02591bd4f4a59 Reviewed-on: https://chromium-review.googlesource.com/c/1228776Reviewed-by:Emircan Uysaler <emircan@chromium.org> Commit-Queue: Christian Fremerey <chfremer@chromium.org> Cr-Commit-Position: refs/heads/master@{#596010}
Showing
Please register or sign in to comment