Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Side by Side Diff: chrome/browser/gpu_process_host.cc

Issue 1095005: Fixed bugs in GPU process startup on POSIX platforms. Added... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | chrome/gpu/gpu_main.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | chrome/gpu/gpu_main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698