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

Unified Diff: gpu/config/gpu_driver_bug_list.cc

Issue 2671773003: Copy GPU workaround flags from browser to GPU process (Closed)
Patch Set: fix test on certain systems Created 3 years, 11 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 | « gpu/config/gpu_driver_bug_list.h ('k') | gpu/config/gpu_driver_bug_list_json.cc » ('j') | 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 7ab68a1070f98326e1f86b4b24c64e927a2a7795..edd9dcf404e1f9c7b9afc1a551e842364108b647 100644
--- a/gpu/config/gpu_driver_bug_list.cc
+++ b/gpu/config/gpu_driver_bug_list.cc
@@ -94,5 +94,17 @@ void GpuDriverBugList::AppendWorkaroundsFromCommandLine(
}
}
+// static
+void GpuDriverBugList::AppendAllWorkarounds(
+ std::vector<const char*>* workarounds) {
+ workarounds->resize(workarounds->size() +
+ NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES);
+
+#define GPU_OP(type, name) workarounds->push_back(#name);
+ GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP)
+#undef GPU_OP
+}
+
+
} // namespace gpu
« no previous file with comments | « gpu/config/gpu_driver_bug_list.h ('k') | gpu/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698