Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #if defined(OS_WIN) | 5 #if defined(OS_WIN) |
| 6 #include <windows.h> | 6 #include <windows.h> |
| 7 #endif | 7 #endif |
| 8 | 8 |
| 9 #include "content/browser/gpu_process_host.h" | 9 #include "content/browser/gpu_process_host.h" |
| 10 | 10 |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 290 switches::kDisableLogging, | 290 switches::kDisableLogging, |
| 291 switches::kEnableAcceleratedDecoding, | 291 switches::kEnableAcceleratedDecoding, |
| 292 switches::kEnableLogging, | 292 switches::kEnableLogging, |
| 293 #if defined(OS_MACOSX) | 293 #if defined(OS_MACOSX) |
| 294 switches::kEnableSandboxLogging, | 294 switches::kEnableSandboxLogging, |
| 295 #endif | 295 #endif |
| 296 switches::kGpuStartupDialog, | 296 switches::kGpuStartupDialog, |
| 297 switches::kLoggingLevel, | 297 switches::kLoggingLevel, |
| 298 switches::kNoGpuSandbox, | 298 switches::kNoGpuSandbox, |
| 299 switches::kNoSandbox, | 299 switches::kNoSandbox, |
| 300 switches::kDisableGLMultisampling, | |
| 300 }; | 301 }; |
|
zmo
2011/03/07 23:34:29
After copy switches from browser commandline, you
jbauman
2011/03/08 19:59:18
Good point, although that's rather tricky because
| |
| 301 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 302 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
| 302 arraysize(kSwitchNames)); | 303 arraysize(kSwitchNames)); |
| 303 | 304 |
| 304 // If specified, prepend a launcher program to the command line. | 305 // If specified, prepend a launcher program to the command line. |
| 305 if (!gpu_launcher.empty()) | 306 if (!gpu_launcher.empty()) |
| 306 cmd_line->PrependWrapper(gpu_launcher); | 307 cmd_line->PrependWrapper(gpu_launcher); |
| 307 | 308 |
| 308 Launch( | 309 Launch( |
| 309 #if defined(OS_WIN) | 310 #if defined(OS_WIN) |
| 310 FilePath(), | 311 FilePath(), |
| 311 #elif defined(OS_POSIX) | 312 #elif defined(OS_POSIX) |
| 312 false, // Never use the zygote (GPU plugin can't be sandboxed). | 313 false, // Never use the zygote (GPU plugin can't be sandboxed). |
| 313 base::environment_vector(), | 314 base::environment_vector(), |
| 314 #endif | 315 #endif |
| 315 cmd_line); | 316 cmd_line); |
| 316 | 317 |
| 317 UMA_HISTOGRAM_ENUMERATION("GPU.GPUProcessLifetimeEvents", | 318 UMA_HISTOGRAM_ENUMERATION("GPU.GPUProcessLifetimeEvents", |
| 318 LAUNCHED, GPU_PROCESS_LIFETIME_EVENT_MAX); | 319 LAUNCHED, GPU_PROCESS_LIFETIME_EVENT_MAX); |
| 319 return true; | 320 return true; |
| 320 } | 321 } |
| OLD | NEW |