-
Miguel Casas authored
This CL adds a |min_resolution| field to VideoEncodeAcceleratorSupportedProfile and propagates it from its source(s) in the GPU process, via the |gpu_info| mojom interface definition, to its ultimate users: MediaRecorder and RTCVideoEncoder (the latter is used for WebRTC's PeerConnection). This new field is populated from VaapiWrapper to indicate that we should not use it for small resolutions (currently 320x240); software encoding should be used instead. This CL also wires this new field in the chrome:gpu informational UI. TEST=https://codepen.io/miguelao/pen/wzVMJb on nocturne (pixel slate), enable logging and verify that MediaRecorder doesn't use the encode accelerator, e.g. for 320x240 camera capture. Bug: 1008491 Change-Id: Ifb19232ca5a5bbbde0ba42e1c28de72e46dafc5c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1828078 Commit-Queue: Miguel Casas <mcasas@chromium.org> Reviewed-by:
Guido Urdaneta <guidou@chromium.org> Reviewed-by:
Hirokazu Honda <hiroh@chromium.org> Reviewed-by:
Zhenyao Mo <zmo@chromium.org> Reviewed-by:
Robert Sesek <rsesek@chromium.org> Reviewed-by:
Dan Sanders <sandersd@chromium.org> Cr-Commit-Position: refs/heads/master@{#704018}
4f26c551