forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgpu_driver_bug_list.h
47 lines (34 loc) · 1.36 KB
/
gpu_driver_bug_list.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GPU_CONFIG_GPU_DRIVER_BUG_LIST_H_
#define GPU_CONFIG_GPU_DRIVER_BUG_LIST_H_
#include <memory>
#include <set>
#include "base/command_line.h"
#include "base/macros.h"
#include "gpu/config/gpu_control_list.h"
#include "gpu/gpu_export.h"
namespace gpu {
class GPU_EXPORT GpuDriverBugList : public GpuControlList {
public:
~GpuDriverBugList() override;
static std::unique_ptr<GpuDriverBugList> Create();
static std::unique_ptr<GpuDriverBugList> Create(
const GpuControlListData& data);
// Append |workarounds| with these passed in through the
// |command_line|.
static void AppendWorkaroundsFromCommandLine(
std::set<int>* workarounds,
const base::CommandLine& command_line);
// Append |workarounds| with the full list of workarounds.
// This is needed for correctly passing flags down from
// the browser process to the GPU process.
static void AppendAllWorkarounds(std::vector<const char*>* workarounds);
static bool AreEntryIndicesValid(const std::vector<uint32_t>& entry_indices);
private:
explicit GpuDriverBugList(const GpuControlListData& data);
DISALLOW_COPY_AND_ASSIGN(GpuDriverBugList);
};
} // namespace gpu
#endif // GPU_CONFIG_GPU_DRIVER_BUG_LIST_H_