#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "gpu/config/gpu_driver_bug_list.h"
#include "base/check_op.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"
namespace gpu {
namespace {
struct GpuDriverBugWorkaroundInfo { … };
const GpuDriverBugWorkaroundInfo kFeatureList[] = …;
}
GpuDriverBugList::GpuDriverBugList(base::span<const GpuControlList::Entry> data)
: … { … }
GpuDriverBugList::~GpuDriverBugList() = default;
std::unique_ptr<GpuDriverBugList> GpuDriverBugList::Create() { … }
std::unique_ptr<GpuDriverBugList> GpuDriverBugList::Create(
base::span<const GpuControlList::Entry> data) { … }
std::string GpuDriverBugWorkaroundTypeToString(
GpuDriverBugWorkaroundType type) { … }
void GpuDriverBugList::AppendWorkaroundsFromCommandLine(
std::set<int>* workarounds,
const base::CommandLine& command_line) { … }
void GpuDriverBugList::AppendAllWorkarounds(
std::vector<const char*>* workarounds) { … }
bool GpuDriverBugList::AreEntryIndicesValid(
const std::vector<uint32_t>& entry_indices) { … }
}