-
Chih-Yu Huang authored
Currently, we used base::Feature "ChromeosVideoDecoder" to control VD enabling. For those unsupported boards, we add the cmdline argument "--disable-feature=ChromeosVideoDecoder" to disable the feature. However, this argument doesn't affect at guest mode. So when we enable the feature by default, those boards cannot play video at guest mode. In this CL, we add a new cmdline flag "kForceDisableNewAcceleratedVideoDecoder". We pass this flag to GPU process, and this flag forces to disable the ChromeosVideoDecoder feature. Bug: b:149797442 Test: Add/Remove "--force-disable-new-accelerated-video-decoder" at /etc/chrome_dev.conf then run `tast run $(DUT) video.Play.h264_guest`. Check VDA or VD is created as expected Test: ./gpu_unittests --gtest_filter="GpuPreferencesTest.*" Change-Id: I1257947fee388e0edbe52e258fbf3f6e5afca795 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2063511Reviewed-by:
Zhenyao Mo <zmo@chromium.org> Reviewed-by:
Alex Gough <ajgo@chromium.org> Reviewed-by:
Dan Sanders <sandersd@chromium.org> Reviewed-by:
Miguel Casas <mcasas@chromium.org> Reviewed-by:
Andres Calderon Jaramillo <andrescj@chromium.org> Reviewed-by:
Alexander Alekseev <alemate@chromium.org> Commit-Queue: Chih-Yu Huang <akahuang@chromium.org> Cr-Commit-Position: refs/heads/master@{#748476}
1415b635