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

Unified Diff: gpu/config/gpu_driver_bug_list.cc

Issue 2644733005: Copy GPU workaround flags from browser to GPU process (Closed)
Patch Set: fix merge error 2 Created 3 years, 10 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..be0bc1ba07a5268dd5f2482dd501bf3ea0d79dd7 100644
--- a/gpu/config/gpu_driver_bug_list.cc
+++ b/gpu/config/gpu_driver_bug_list.cc
@@ -94,5 +94,16 @@ 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