forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: Add kForceDisableNewAcceleratedVideoDecoder argument.
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/+/2063511 Reviewed-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}
- Loading branch information
Chih-Yu Huang
authored and
Commit Bot
committed
Mar 10, 2020
1 parent
302931e
commit 1415b63
Showing
9 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters