OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromecast/browser/cast_browser_main_parts.h" | 5 #include "chromecast/browser/cast_browser_main_parts.h" |
6 | 6 |
7 #include <signal.h> | 7 #include <signal.h> |
8 #include <sys/prctl.h> | 8 #include <sys/prctl.h> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 { switches::kEnableOverlayFullscreenVideo, ""}, | 107 { switches::kEnableOverlayFullscreenVideo, ""}, |
108 { switches::kDisableInfobarForProtectedMediaIdentifier, ""}, | 108 { switches::kDisableInfobarForProtectedMediaIdentifier, ""}, |
109 { switches::kDisableGestureRequirementForMediaPlayback, ""}, | 109 { switches::kDisableGestureRequirementForMediaPlayback, ""}, |
110 { switches::kForceUseOverlayEmbeddedVideo, ""}, | 110 { switches::kForceUseOverlayEmbeddedVideo, ""}, |
111 #endif | 111 #endif |
112 // Always enable HTMLMediaElement logs. | 112 // Always enable HTMLMediaElement logs. |
113 { switches::kBlinkPlatformLogChannels, "Media"}, | 113 { switches::kBlinkPlatformLogChannels, "Media"}, |
114 #if defined(DISABLE_DISPLAY) | 114 #if defined(DISABLE_DISPLAY) |
115 { switches::kDisableGpu, "" }, | 115 { switches::kDisableGpu, "" }, |
116 #endif | 116 #endif |
117 #if defined(OS_LINUX) && defined(ARCH_CPU_X86_FAMILY) | 117 #if defined(OS_LINUX) |
| 118 #if defined(ARCH_CPU_X86_FAMILY) |
118 // This is needed for now to enable the egltest Ozone platform to work with | 119 // This is needed for now to enable the egltest Ozone platform to work with |
119 // current Linux/NVidia OpenGL drivers. | 120 // current Linux/NVidia OpenGL drivers. |
120 { switches::kIgnoreGpuBlacklist, ""}, | 121 { switches::kIgnoreGpuBlacklist, ""}, |
121 // TODO(gusfernandez): This is needed to fix a bug with | 122 #elif defined(ARCH_CPU_ARM_FAMILY) && !defined(DISABLE_DISPLAY) |
122 // glPostSubBufferCHROMIUM (crbug.com/429200) | 123 // On Linux arm, enable CMA pipeline by default. |
123 { cc::switches::kUIDisablePartialSwap, ""}, | 124 { switches::kEnableCmaMediaPipeline, "" }, |
124 #endif | 125 #endif |
| 126 #endif // defined(OS_LINUX) |
125 // Needed to fix a bug where the raster thread doesn't get scheduled for a | 127 // Needed to fix a bug where the raster thread doesn't get scheduled for a |
126 // substantial time (~5 seconds). See https://crbug.com/441895. | 128 // substantial time (~5 seconds). See https://crbug.com/441895. |
127 { switches::kUseNormalPriorityForTileTaskWorkerThreads, "" }, | 129 { switches::kUseNormalPriorityForTileTaskWorkerThreads, "" }, |
128 { NULL, NULL }, // Termination | 130 { NULL, NULL }, // Termination |
129 }; | 131 }; |
130 | 132 |
131 void AddDefaultCommandLineSwitches(base::CommandLine* command_line) { | 133 void AddDefaultCommandLineSwitches(base::CommandLine* command_line) { |
132 int i = 0; | 134 int i = 0; |
133 while (g_default_switches[i].switch_name != NULL) { | 135 while (g_default_switches[i].switch_name != NULL) { |
134 command_line->AppendSwitchASCII( | 136 command_line->AppendSwitchASCII( |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 NOTREACHED(); | 278 NOTREACHED(); |
277 #else | 279 #else |
278 cast_browser_process_->cast_service()->Finalize(); | 280 cast_browser_process_->cast_service()->Finalize(); |
279 cast_browser_process_->metrics_service_client()->Finalize(); | 281 cast_browser_process_->metrics_service_client()->Finalize(); |
280 cast_browser_process_.reset(); | 282 cast_browser_process_.reset(); |
281 #endif | 283 #endif |
282 } | 284 } |
283 | 285 |
284 } // namespace shell | 286 } // namespace shell |
285 } // namespace chromecast | 287 } // namespace chromecast |
OLD | NEW |