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_content_browser_client.h" | 5 #include "chromecast/browser/cast_content_browser_client.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base_switches.h" | 9 #include "base/base_switches.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // controlled by GetBreakpadClient()->EnableBreakpadForProcess(), therefore | 132 // controlled by GetBreakpadClient()->EnableBreakpadForProcess(), therefore |
133 // it's ok to add switch to every process here. | 133 // it's ok to add switch to every process here. |
134 if (breakpad::IsCrashReporterEnabled()) { | 134 if (breakpad::IsCrashReporterEnabled()) { |
135 command_line->AppendSwitch(switches::kEnableCrashReporter); | 135 command_line->AppendSwitch(switches::kEnableCrashReporter); |
136 } | 136 } |
137 | 137 |
138 // Renderer process command-line | 138 // Renderer process command-line |
139 if (process_type == switches::kRendererProcess) { | 139 if (process_type == switches::kRendererProcess) { |
140 // Any browser command-line switches that should be propagated to | 140 // Any browser command-line switches that should be propagated to |
141 // the renderer go here. | 141 // the renderer go here. |
142 #if defined(OS_ANDROID) | |
143 command_line->AppendSwitch(switches::kForceUseOverlayEmbeddedVideo); | |
144 #endif // defined(OS_ANDROID) | |
145 | 142 |
146 if (browser_command_line->HasSwitch(switches::kEnableCmaMediaPipeline)) | 143 if (browser_command_line->HasSwitch(switches::kEnableCmaMediaPipeline)) |
147 command_line->AppendSwitch(switches::kEnableCmaMediaPipeline); | 144 command_line->AppendSwitch(switches::kEnableCmaMediaPipeline); |
148 } | 145 } |
149 | 146 |
150 #if defined(OS_LINUX) | 147 #if defined(OS_LINUX) |
151 // Necessary for accelerated 2d canvas. By default on Linux, Chromium assumes | 148 // Necessary for accelerated 2d canvas. By default on Linux, Chromium assumes |
152 // GLES2 contexts can be lost to a power-save mode, which breaks GPU canvas | 149 // GLES2 contexts can be lost to a power-save mode, which breaks GPU canvas |
153 // apps. | 150 // apps. |
154 if (process_type == switches::kGpuProcess) { | 151 if (process_type == switches::kGpuProcess) { |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 process_type, dumps_path, false /* upload */); | 365 process_type, dumps_path, false /* upload */); |
369 // StartUploaderThread() even though upload is diferred. | 366 // StartUploaderThread() even though upload is diferred. |
370 // Breakpad-related memory is freed in the uploader thread. | 367 // Breakpad-related memory is freed in the uploader thread. |
371 crash_handler->StartUploaderThread(); | 368 crash_handler->StartUploaderThread(); |
372 return crash_handler; | 369 return crash_handler; |
373 } | 370 } |
374 #endif // !defined(OS_ANDROID) | 371 #endif // !defined(OS_ANDROID) |
375 | 372 |
376 } // namespace shell | 373 } // namespace shell |
377 } // namespace chromecast | 374 } // namespace chromecast |
OLD | NEW |