Commit 338b3371 authored by slan's avatar slan Committed by Commit bot

[Chromecast] Set default ozone platform to "cast" on device builds.

All device Chromecast builds should default to "cast" platform. Desktop
builds will continue to use "headless" as default for now.

BUG=

Review URL: https://codereview.chromium.org/1519613002

Cr-Commit-Position: refs/heads/master@{#364472}
parent 5c11f184
...@@ -2386,10 +2386,18 @@ ...@@ -2386,10 +2386,18 @@
['disable_display==0', { ['disable_display==0', {
# Enable the Cast ozone platform on all A/V Cast builds. # Enable the Cast ozone platform on all A/V Cast builds.
'ozone_platform_cast%': 1, 'ozone_platform_cast%': 1,
# For desktop Chromecast builds, override the default "headless"
# platform with --ozone-platform=egltest
# TODO(slan|halliwell): Make the default platform "cast" on
# desktop too.
'conditions': [ 'conditions': [
['OS=="linux" and target_arch!="arm"', { ['OS=="linux" and target_arch!="arm"', {
'ozone_platform_egltest%': 1, 'ozone_platform_egltest%': 1,
'ozone_platform_ozonex%': 1, 'ozone_platform_ozonex%': 1,
}, {
# On device builds, enable "cast" as the default platform.
'ozone_platform%': 'cast',
}], }],
], ],
}], }],
......
...@@ -35,13 +35,18 @@ declare_args() { ...@@ -35,13 +35,18 @@ declare_args() {
if (is_chromecast) { if (is_chromecast) {
if (!disable_display) { if (!disable_display) {
# Enable the Cast ozone platform on all A/V Cast builds.
ozone_platform_cast = true ozone_platform_cast = true
# For desktop Chromecast builds, override the default "headless" platform # For desktop Chromecast builds, override the default "headless"
# with --ozone-platform=egltest # platform with --ozone-platform=egltest
# TODO(slan|halliwell): Make the default platform "cast" on desktop too.
if (target_os == "linux" && target_cpu != "arm") { if (target_os == "linux" && target_cpu != "arm") {
ozone_platform_egltest = true ozone_platform_egltest = true
ozone_platform_ozonex = true ozone_platform_ozonex = true
} else {
# On device builds, enable "cast" as the default platform.
ozone_platform = "cast"
} }
} }
} else if (is_chromeos) { } else if (is_chromeos) {
......
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