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 #include "chrome/browser/gpu_process_host.h" | 5 #include "chrome/browser/gpu_process_host.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/singleton.h" | 8 #include "base/singleton.h" |
9 #include "base/thread.h" | 9 #include "base/thread.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 } | 164 } |
165 | 165 |
166 void GpuProcessHost::PropagateBrowserCommandLineToGpu( | 166 void GpuProcessHost::PropagateBrowserCommandLineToGpu( |
167 const CommandLine& browser_cmd, | 167 const CommandLine& browser_cmd, |
168 CommandLine* gpu_cmd) const { | 168 CommandLine* gpu_cmd) const { |
169 // Propagate the following switches to the GPU process command line (along | 169 // Propagate the following switches to the GPU process command line (along |
170 // with any associated values) if present in the browser command line. | 170 // with any associated values) if present in the browser command line. |
171 static const char* const switch_names[] = { | 171 static const char* const switch_names[] = { |
172 switches::kDisableLogging, | 172 switches::kDisableLogging, |
173 switches::kEnableLogging, | 173 switches::kEnableLogging, |
| 174 switches::kGpuStartupDialog, |
174 switches::kLoggingLevel, | 175 switches::kLoggingLevel, |
175 }; | 176 }; |
176 | 177 |
177 for (size_t i = 0; i < arraysize(switch_names); ++i) { | 178 for (size_t i = 0; i < arraysize(switch_names); ++i) { |
178 if (browser_cmd.HasSwitch(switch_names[i])) { | 179 if (browser_cmd.HasSwitch(switch_names[i])) { |
179 gpu_cmd->AppendSwitchWithValue(switch_names[i], | 180 gpu_cmd->AppendSwitchWithValue(switch_names[i], |
180 browser_cmd.GetSwitchValueASCII(switch_names[i])); | 181 browser_cmd.GetSwitchValueASCII(switch_names[i])); |
181 } | 182 } |
182 } | 183 } |
183 } | 184 } |
OLD | NEW |