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

Unified Diff: gpu/config/gpu_driver_bug_list.cc

Issue 1415603009: Do not discard existing gpu driver workarounds when called from gpu process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: gpu/config/gpu_driver_bug_list.cc
diff --git a/gpu/config/gpu_driver_bug_list.cc b/gpu/config/gpu_driver_bug_list.cc
index 1942523802be81b7deb0937df470810291045f1b..bda38b6647a5260a66bbb5b5d0ffee5b2a1e9d5c 100644
--- a/gpu/config/gpu_driver_bug_list.cc
+++ b/gpu/config/gpu_driver_bug_list.cc
@@ -7,6 +7,8 @@
#include "base/basictypes.h"
#include "base/logging.h"
#include "gpu/config/gpu_driver_bug_workaround_type.h"
+#include "gpu/config/gpu_switches.h"
+#include "gpu/config/gpu_util.h"
namespace gpu {
@@ -58,6 +60,15 @@ void GpuDriverBugList::AppendWorkaroundsFromCommandLine(
std::set<int>* workarounds,
const base::CommandLine& command_line) {
DCHECK(workarounds);
+
+ if (command_line.HasSwitch(switches::kGpuDriverBugWorkarounds)) {
+ std::string cmd_workarounds_str =
+ command_line.GetSwitchValueASCII(switches::kGpuDriverBugWorkarounds);
+ std::set<int> cmd_workarounds;
+ gpu::StringToFeatureSet(cmd_workarounds_str, &cmd_workarounds);
+ workarounds->insert(cmd_workarounds.begin(), cmd_workarounds.end());
+ }
+
for (int i = 0; i < NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES; i++) {
if (command_line.HasSwitch(kFeatureList[i].name)) {
// Check for disabling workaround flag.
« 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