| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 command_line->AppendSwitch(switches::kEnableCrashReporter); | 217 command_line->AppendSwitch(switches::kEnableCrashReporter); |
| 218 } | 218 } |
| 219 | 219 |
| 220 // Renderer process command-line | 220 // Renderer process command-line |
| 221 if (process_type == switches::kRendererProcess) { | 221 if (process_type == switches::kRendererProcess) { |
| 222 // Any browser command-line switches that should be propagated to | 222 // Any browser command-line switches that should be propagated to |
| 223 // the renderer go here. | 223 // the renderer go here. |
| 224 | 224 |
| 225 if (browser_command_line->HasSwitch(switches::kEnableCmaMediaPipeline)) | 225 if (browser_command_line->HasSwitch(switches::kEnableCmaMediaPipeline)) |
| 226 command_line->AppendSwitch(switches::kEnableCmaMediaPipeline); | 226 command_line->AppendSwitch(switches::kEnableCmaMediaPipeline); |
| 227 if (browser_command_line->HasSwitch(switches::kEnableLegacyHolePunching)) | |
| 228 command_line->AppendSwitch(switches::kEnableLegacyHolePunching); | |
| 229 if (browser_command_line->HasSwitch(switches::kAllowHiddenMediaPlayback)) | 227 if (browser_command_line->HasSwitch(switches::kAllowHiddenMediaPlayback)) |
| 230 command_line->AppendSwitch(switches::kAllowHiddenMediaPlayback); | 228 command_line->AppendSwitch(switches::kAllowHiddenMediaPlayback); |
| 231 } | 229 } |
| 232 | 230 |
| 233 #if defined(OS_LINUX) | 231 #if defined(OS_LINUX) |
| 234 // Necessary for accelerated 2d canvas. By default on Linux, Chromium assumes | 232 // Necessary for accelerated 2d canvas. By default on Linux, Chromium assumes |
| 235 // GLES2 contexts can be lost to a power-save mode, which breaks GPU canvas | 233 // GLES2 contexts can be lost to a power-save mode, which breaks GPU canvas |
| 236 // apps. | 234 // apps. |
| 237 if (process_type == switches::kGpuProcess) { | 235 if (process_type == switches::kGpuProcess) { |
| 238 command_line->AppendSwitch(switches::kGpuNoContextLost); | 236 command_line->AppendSwitch(switches::kGpuNoContextLost); |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 process_type, dumps_path, false /* upload */); | 451 process_type, dumps_path, false /* upload */); |
| 454 // StartUploaderThread() even though upload is diferred. | 452 // StartUploaderThread() even though upload is diferred. |
| 455 // Breakpad-related memory is freed in the uploader thread. | 453 // Breakpad-related memory is freed in the uploader thread. |
| 456 crash_handler->StartUploaderThread(); | 454 crash_handler->StartUploaderThread(); |
| 457 return crash_handler; | 455 return crash_handler; |
| 458 } | 456 } |
| 459 #endif // !defined(OS_ANDROID) | 457 #endif // !defined(OS_ANDROID) |
| 460 | 458 |
| 461 } // namespace shell | 459 } // namespace shell |
| 462 } // namespace chromecast | 460 } // namespace chromecast |
| OLD | NEW |