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_BLACKLIST_H_ | 5 #ifndef GPU_CONFIG_GPU_BLACKLIST_H_ |
6 #define GPU_CONFIG_GPU_BLACKLIST_H_ | 6 #define GPU_CONFIG_GPU_BLACKLIST_H_ |
7 | 7 |
8 #include <string> | |
9 | |
10 #include "base/macros.h" | 8 #include "base/macros.h" |
11 #include "gpu/config/gpu_control_list.h" | 9 #include "gpu/config/gpu_control_list.h" |
12 | 10 |
13 namespace gpu { | 11 namespace gpu { |
14 | 12 |
15 class GPU_EXPORT GpuBlacklist : public GpuControlList { | 13 class GPU_EXPORT GpuBlacklist : public GpuControlList { |
16 public: | 14 public: |
17 ~GpuBlacklist() override; | 15 ~GpuBlacklist() override; |
18 | 16 |
19 static GpuBlacklist* Create(); | 17 static GpuBlacklist* Create(); |
piman
2017/03/30 23:44:41
nit: if it's not too much work, could we return a
Zhenyao Mo
2017/03/31 19:14:14
Done.
| |
18 static GpuBlacklist* Create(const GpuControlListData& data); | |
20 | 19 |
21 private: | 20 private: |
22 GpuBlacklist(); | 21 GpuBlacklist(const GpuControlListData& data); |
piman
2017/03/30 23:44:41
nit: explicit
Zhenyao Mo
2017/03/31 19:14:14
Done.
| |
23 | 22 |
24 DISALLOW_COPY_AND_ASSIGN(GpuBlacklist); | 23 DISALLOW_COPY_AND_ASSIGN(GpuBlacklist); |
25 }; | 24 }; |
26 | 25 |
27 } // namespace gpu | 26 } // namespace gpu |
28 | 27 |
29 #endif // GPU_CONFIG_GPU_BLACKLIST_H_ | 28 #endif // GPU_CONFIG_GPU_BLACKLIST_H_ |
OLD | NEW |