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

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: Switch to use arraysize 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
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..f07175d98add906827e305566cc6e4e0f9a428ae 100644
--- a/gpu/config/gpu_driver_bug_list.cc
+++ b/gpu/config/gpu_driver_bug_list.cc
@@ -5,7 +5,7 @@
#include "gpu/config/gpu_driver_bug_list.h"
#include "base/logging.h"
-#include "gpu/config/gpu_driver_bug_workaround_type.h"
+#include "gpu/config/gpu_driver_bug_list_autogen.h"
#include "gpu/config/gpu_switches.h"
#include "gpu/config/gpu_util.h"
@@ -26,16 +26,22 @@ 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();
+ GpuControlListData data(kGpuDriverBugListVersion, kGpuDriverBugListEntryCount,
+ kGpuDriverBugListEntries);
+ return Create(data);
+}
+
+// static
+GpuDriverBugList* GpuDriverBugList::Create(const GpuControlListData& data) {
+ GpuDriverBugList* list = new GpuDriverBugList(data);
DCHECK_EQ(static_cast<int>(arraysize(kFeatureList)),
NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES);

Powered by Google App Engine
This is Rietveld 408576698