Index: ui/ozone/ozone.gni |
diff --git a/ui/ozone/ozone.gni b/ui/ozone/ozone.gni |
index f8c01869fd799b14f7478cdc8049ff9ee380128a..05994bd5689c356536e7c522bc52f37f8747868b 100644 |
--- a/ui/ozone/ozone.gni |
+++ b/ui/ozone/ozone.gni |
@@ -35,13 +35,18 @@ declare_args() { |
if (is_chromecast) { |
if (!disable_display) { |
+ # Enable the Cast ozone platform on all A/V Cast builds. |
ozone_platform_cast = true |
- # For desktop Chromecast builds, override the default "headless" platform |
- # with --ozone-platform=egltest |
+ # For desktop Chromecast builds, override the default "headless" |
+ # platform with --ozone-platform=egltest |
+ # TODO(slan|halliwell): Make the default platform "cast" on desktop too. |
if (target_os == "linux" && target_cpu != "arm") { |
ozone_platform_egltest = true |
ozone_platform_ozonex = true |
+ } else { |
+ # On device builds, enable "cast" as the default platform. |
+ ozone_platform = "cast" |
} |
} |
} else if (is_chromeos) { |