Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: chromecast/browser/cast_browser_main_parts.cc

Issue 2288283002: [Chromecast] Rename disable_display flag to is_cast_audio_only. (Closed)
Patch Set: cast_audio_only => is_cast_audio_only Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/BUILD.gn ('k') | chromecast/browser/test/chromecast_shell_browser_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_browser_main_parts.cc
diff --git a/chromecast/browser/cast_browser_main_parts.cc b/chromecast/browser/cast_browser_main_parts.cc
index ec8db50a1ae383a6fb928754566776ff49a68893..fb372faa37a726f83bce3b07206b38df14f3616c 100644
--- a/chromecast/browser/cast_browser_main_parts.cc
+++ b/chromecast/browser/cast_browser_main_parts.cc
@@ -223,7 +223,7 @@ DefaultCommandLineSwitch g_default_switches[] = {
// Enable media sessions by default (even on non-Android platforms).
{ switches::kEnableDefaultMediaSession, "" },
#endif
-#if BUILDFLAG(DISABLE_DISPLAY)
+#if BUILDFLAG(IS_CAST_AUDIO_ONLY)
{ switches::kDisableGpu, "" },
#endif
#if defined(OS_LINUX)
@@ -234,7 +234,7 @@ DefaultCommandLineSwitch g_default_switches[] = {
#elif defined(ARCH_CPU_ARM_FAMILY)
// On Linux arm, enable CMA pipeline by default.
{ switches::kEnableCmaMediaPipeline, "" },
-#if !BUILDFLAG(DISABLE_DISPLAY)
+#if !BUILDFLAG(IS_CAST_AUDIO_ONLY)
{ switches::kEnableHardwareOverlays, "" },
#endif
#endif
@@ -462,9 +462,9 @@ void CastBrowserMainParts::PreMainMessageLoopRun() {
cast_browser_process_->browser_client()
->EnableRemoteDebuggingImmediately()));
-#if defined(USE_AURA) && !BUILDFLAG(DISABLE_DISPLAY)
+#if defined(USE_AURA) && !BUILDFLAG(IS_CAST_AUDIO_ONLY)
// TODO(halliwell) move audio builds to use ozone_platform_cast, then can
- // simplify this by removing DISABLE_DISPLAY condition. Should then also
+ // simplify this by removing IS_CAST_AUDIO_ONLY condition. Should then also
// assert(ozone_platform_cast) in BUILD.gn where it depends on //ui/ozone.
gfx::Size display_size =
display::Screen::GetScreen()->GetPrimaryDisplay().GetSizeInPixel();
« no previous file with comments | « chromecast/BUILD.gn ('k') | chromecast/browser/test/chromecast_shell_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698