media/gpu: Cache HW encoder capabilities
After crrev.com/c/1994849, a renderer process queries GPU process HW encoder capabilities when the renderer process is created. To get hw encoder capabilities, it is needed to open driver nodes and query them. The time is small but may not be small enough to ignore. This CL caches hw encoder capabilities so that GPU process only needs to query one time. The exception is V4L2 HW encoder. Since V4L2 driver nodes may not be loaded at the early time of a system boot up, we need to query it until the capabilities are detected. Bug: b:147404923 Bug: 948147 Test: HW encoder is used at appr.tc Test: tast run webrtc.* on krane Change-Id: Iba256bfda861adb75a5454eb011244cb193618d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1994038 Commit-Queue: Hirokazu Honda <hiroh@chromium.org> Reviewed-by:Alexandre Courbot <acourbot@chromium.org> Reviewed-by:
Dan Sanders <sandersd@chromium.org> Cr-Commit-Position: refs/heads/master@{#733999}
Showing
Please register or sign in to comment