Commit 5929c32a authored by zmo@google.com's avatar zmo@google.com

Disable gpu process crash reporting when --ignore-gpu-blacklist is used.

BUG=92949
TEST=none
Review URL: http://codereview.chromium.org/7648041

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97014 0039d316-1c4b-4281-b951-d872f2087c98
parent c8fd3d44
......@@ -521,6 +521,7 @@ bool GpuProcessHost::LaunchGpuProcess() {
// Propagate relevant command line switches.
static const char* const kSwitchNames[] = {
switches::kDisableBreakpad,
switches::kDisableGLMultisampling,
switches::kDisableGpuSandbox,
switches::kDisableGpuVsync,
......@@ -540,6 +541,12 @@ bool GpuProcessHost::LaunchGpuProcess() {
cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
arraysize(kSwitchNames));
// If --ignore-gpu-blacklist is passed in, don't send in crash reports
// because GPU is expected to be unreliable.
if (browser_command_line.HasSwitch(switches::kIgnoreGpuBlacklist) &&
!cmd_line->HasSwitch(switches::kDisableBreakpad))
cmd_line->AppendSwitch(switches::kDisableBreakpad);
GpuFeatureFlags flags = GpuDataManager::GetInstance()->GetGpuFeatureFlags();
if (flags.flags() & GpuFeatureFlags::kGpuFeatureMultisampling)
cmd_line->AppendSwitch(switches::kDisableGLMultisampling);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment