OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "gpu/config/gpu_util.h" | 5 #include "gpu/config/gpu_util.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/string_split.h" | 12 #include "base/strings/string_split.h" |
13 #include "gpu/command_buffer/service/gpu_switches.h" | |
14 #include "gpu/config/gpu_control_list_jsons.h" | 13 #include "gpu/config/gpu_control_list_jsons.h" |
15 #include "gpu/config/gpu_driver_bug_list.h" | 14 #include "gpu/config/gpu_driver_bug_list.h" |
16 #include "gpu/config/gpu_info_collector.h" | 15 #include "gpu/config/gpu_info_collector.h" |
| 16 #include "gpu/config/gpu_switches.h" |
17 #include "ui/gl/gl_switches.h" | 17 #include "ui/gl/gl_switches.h" |
18 | 18 |
19 namespace gpu { | 19 namespace gpu { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 // Combine the integers into a string, seperated by ','. | 23 // Combine the integers into a string, seperated by ','. |
24 std::string IntSetToString(const std::set<int>& list) { | 24 std::string IntSetToString(const std::set<int>& list) { |
25 std::string rt; | 25 std::string rt; |
26 for (std::set<int>::const_iterator it = list.begin(); | 26 for (std::set<int>::const_iterator it = list.begin(); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 IntSetToString(workarounds)); | 74 IntSetToString(workarounds)); |
75 } | 75 } |
76 } | 76 } |
77 | 77 |
78 void StringToFeatureSet( | 78 void StringToFeatureSet( |
79 const std::string& str, std::set<int>* feature_set) { | 79 const std::string& str, std::set<int>* feature_set) { |
80 StringToIntSet(str, feature_set); | 80 StringToIntSet(str, feature_set); |
81 } | 81 } |
82 | 82 |
83 } // namespace gpu | 83 } // namespace gpu |
OLD | NEW |