Commit 5ad4ce9d authored by Aidan Wolter's avatar Aidan Wolter Committed by Commit Bot

Ensure cast on Android does not use MojoRenderer

We need to enable CMA on some Android devices, but we should continue
using MojoAudioDecoder and MojoVideoDecoder in the gpu process. This
affects Android-based Cast devices.

BUG=b:111465269
TEST=Build, cast YT

Change-Id: Ic76d695204720b91d99ab53ae3b40513cea962c5
Reviewed-on: https://chromium-review.googlesource.com/1139103
Commit-Queue: Aidan Wolter <awolter@chromium.org>
Reviewed-by: default avatarThomas Guilbert <tguilbert@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576315}
parent ebb1555d
...@@ -177,14 +177,14 @@ _default_mojo_media_host = "none" ...@@ -177,14 +177,14 @@ _default_mojo_media_host = "none"
# Can be overridden by gn build arguments from the --args command line flag # Can be overridden by gn build arguments from the --args command line flag
# for local testing. # for local testing.
if (enable_mojo_media) { if (enable_mojo_media) {
if (is_chromecast && is_cast_using_cma_backend) { if (is_chromecast && is_cast_using_cma_backend && !is_android) {
_default_mojo_media_services = [ _default_mojo_media_services = [
"cdm", "cdm",
"renderer", "renderer",
] ]
_default_mojo_media_host = "browser" _default_mojo_media_host = "browser"
} else if (is_android) { } else if (is_android) {
# Both chrome for Android and cast for ATV belongs to this case # Both chrome for Android and cast for Android belongs to this case
_default_mojo_media_services = [ _default_mojo_media_services = [
"cdm", "cdm",
"audio_decoder", "audio_decoder",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment