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

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 7648041: Disable gpu process crash reporting when --ignore-gpu-blacklist is used. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_process_host.cc
===================================================================
--- content/browser/gpu/gpu_process_host.cc (revision 96780)
+++ content/browser/gpu/gpu_process_host.cc (working copy)
@@ -521,6 +521,7 @@
// Propagate relevant command line switches.
static const char* const kSwitchNames[] = {
+ switches::kDisableBreakpad,
switches::kDisableGLMultisampling,
switches::kDisableGpuSandbox,
switches::kDisableGpuVsync,
@@ -540,6 +541,12 @@
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698