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

Unified Diff: gpu/config/gpu_driver_bug_list.cc

Issue 2756793003: Move GPU blacklist and driver bug workaround list from json to data struct. (Closed)
Patch Set: pure rebase Created 3 years, 9 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.README ('k') | gpu/config/gpu_driver_bug_list.json » ('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 be0bc1ba07a5268dd5f2482dd501bf3ea0d79dd7..7a32c28569e6b48f67d27bea56fec1a2339903b1 100644
--- a/gpu/config/gpu_driver_bug_list.cc
+++ b/gpu/config/gpu_driver_bug_list.cc
@@ -5,6 +5,7 @@
#include "gpu/config/gpu_driver_bug_list.h"
#include "base/logging.h"
+#include "gpu/config/gpu_driver_bug_list_autogen.h"
#include "gpu/config/gpu_driver_bug_workaround_type.h"
#include "gpu/config/gpu_switches.h"
#include "gpu/config/gpu_util.h"
@@ -26,16 +27,23 @@ const GpuDriverBugWorkaroundInfo kFeatureList[] = {
} // namespace anonymous
-GpuDriverBugList::GpuDriverBugList()
- : GpuControlList() {
-}
+GpuDriverBugList::GpuDriverBugList(const GpuControlListData& data)
+ : GpuControlList(data) {}
GpuDriverBugList::~GpuDriverBugList() {
}
// static
-GpuDriverBugList* GpuDriverBugList::Create() {
- GpuDriverBugList* list = new GpuDriverBugList();
+std::unique_ptr<GpuDriverBugList> GpuDriverBugList::Create() {
+ GpuControlListData data(kGpuDriverBugListVersion, kGpuDriverBugListEntryCount,
+ kGpuDriverBugListEntries);
+ return Create(data);
+}
+
+// static
+std::unique_ptr<GpuDriverBugList> GpuDriverBugList::Create(
+ const GpuControlListData& data) {
+ std::unique_ptr<GpuDriverBugList> list(new GpuDriverBugList(data));
DCHECK_EQ(static_cast<int>(arraysize(kFeatureList)),
NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES);
@@ -106,4 +114,3 @@ void GpuDriverBugList::AppendAllWorkarounds(
}
} // namespace gpu
-
« no previous file with comments | « gpu/config/gpu_driver_bug_list.README ('k') | gpu/config/gpu_driver_bug_list.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698