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

Unified Diff: gpu/config/gpu_util.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_util.cc
diff --git a/gpu/config/gpu_util.cc b/gpu/config/gpu_util.cc
index 8832c8fc4f23ac89d6be712d4a9f51d9e4f4499e..cc32c2966e11d361cef3c376b57ec82ad7684907 100644
--- a/gpu/config/gpu_util.cc
+++ b/gpu/config/gpu_util.cc
@@ -17,7 +17,6 @@
#include "base/strings/stringprintf.h"
#include "base/sys_info.h"
#include "gpu/config/gpu_blacklist.h"
-#include "gpu/config/gpu_control_list_jsons.h"
#include "gpu/config/gpu_crash_keys.h"
#include "gpu/config/gpu_driver_bug_list.h"
#include "gpu/config/gpu_feature_type.h"
@@ -98,8 +97,6 @@ GpuFeatureStatus GetGpuRasterizationFeatureStatus(
void ApplyGpuDriverBugWorkarounds(const GPUInfo& gpu_info,
base::CommandLine* command_line) {
std::unique_ptr<GpuDriverBugList> list(GpuDriverBugList::Create());
- list->LoadList(kGpuDriverBugListJson,
- GpuControlList::kCurrentOsOnly);
std::set<int> workarounds = list->MakeDecision(
GpuControlList::kOsAny, std::string(), gpu_info);
GpuDriverBugList::AppendWorkaroundsFromCommandLine(
@@ -196,7 +193,6 @@ GpuFeatureInfo GetGpuFeatureInfo(const GPUInfo& gpu_info,
std::set<int> blacklisted_features;
if (!command_line.HasSwitch(switches::kIgnoreGpuBlacklist)) {
std::unique_ptr<GpuBlacklist> list(GpuBlacklist::Create());
- list->LoadList(kSoftwareRenderingListJson, GpuControlList::kCurrentOsOnly);
blacklisted_features =
list->MakeDecision(GpuControlList::kOsAny, std::string(), gpu_info);
}

Powered by Google App Engine
This is Rietveld 408576698