OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef GPU_CONFIG_GPU_DRIVER_BUG_LIST_H_ | 5 #ifndef GPU_CONFIG_GPU_DRIVER_BUG_LIST_H_ |
6 #define GPU_CONFIG_GPU_DRIVER_BUG_LIST_H_ | 6 #define GPU_CONFIG_GPU_DRIVER_BUG_LIST_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "gpu/config/gpu_control_list.h" | 12 #include "gpu/config/gpu_control_list.h" |
13 #include "gpu/config/gpu_driver_bug_workaround_type.h" | 13 #include "gpu/config/gpu_driver_bug_workaround_type.h" |
14 #include "gpu/gpu_export.h" | 14 #include "gpu/gpu_export.h" |
15 | 15 |
16 namespace gpu { | 16 namespace gpu { |
17 | 17 |
18 class GPU_EXPORT GpuDriverBugList : public GpuControlList { | 18 class GPU_EXPORT GpuDriverBugList : public GpuControlList { |
19 public: | 19 public: |
20 ~GpuDriverBugList() override; | 20 ~GpuDriverBugList() override; |
21 | 21 |
22 static GpuDriverBugList* Create(); | 22 static GpuDriverBugList* Create(); |
23 | 23 |
24 // Append |workarounds| with these passed in through the | 24 // Append |workarounds| with these passed in through the |
25 // |command_line|. | 25 // |command_line|. |
26 static void AppendWorkaroundsFromCommandLine( | 26 static void AppendWorkaroundsFromCommandLine( |
27 std::set<int>* workarounds, const CommandLine& command_line); | 27 std::set<int>* workarounds, |
| 28 const base::CommandLine& command_line); |
28 | 29 |
29 private: | 30 private: |
30 GpuDriverBugList(); | 31 GpuDriverBugList(); |
31 | 32 |
32 DISALLOW_COPY_AND_ASSIGN(GpuDriverBugList); | 33 DISALLOW_COPY_AND_ASSIGN(GpuDriverBugList); |
33 }; | 34 }; |
34 | 35 |
35 } // namespace gpu | 36 } // namespace gpu |
36 | 37 |
37 #endif // GPU_CONFIG_GPU_DRIVER_BUG_LIST_H_ | 38 #endif // GPU_CONFIG_GPU_DRIVER_BUG_LIST_H_ |
38 | 39 |
OLD | NEW |