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 #include "gpu/config/gpu_control_list.h" | 5 #include "gpu/config/gpu_control_list.h" |
6 | 6 |
7 #include "base/cpu.h" | 7 #include "base/cpu.h" |
8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/string_util.h" | |
11 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/string_split.h" | 11 #include "base/strings/string_split.h" |
| 12 #include "base/strings/string_util.h" |
13 #include "base/sys_info.h" | 13 #include "base/sys_info.h" |
14 #include "gpu/config/gpu_info.h" | 14 #include "gpu/config/gpu_info.h" |
15 #include "gpu/config/gpu_util.h" | 15 #include "gpu/config/gpu_util.h" |
16 | 16 |
17 namespace gpu { | 17 namespace gpu { |
18 namespace { | 18 namespace { |
19 | 19 |
20 // Break a version string into segments. Return true if each segment is | 20 // Break a version string into segments. Return true if each segment is |
21 // a valid number. | 21 // a valid number. |
22 bool ProcessVersionString(const std::string& version_string, | 22 bool ProcessVersionString(const std::string& version_string, |
(...skipping 1387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1410 const std::string& feature_name, int feature_id) { | 1410 const std::string& feature_name, int feature_id) { |
1411 feature_map_[feature_name] = feature_id; | 1411 feature_map_[feature_name] = feature_id; |
1412 } | 1412 } |
1413 | 1413 |
1414 void GpuControlList::set_supports_feature_type_all(bool supported) { | 1414 void GpuControlList::set_supports_feature_type_all(bool supported) { |
1415 supports_feature_type_all_ = supported; | 1415 supports_feature_type_all_ = supported; |
1416 } | 1416 } |
1417 | 1417 |
1418 } // namespace gpu | 1418 } // namespace gpu |
1419 | 1419 |
OLD | NEW |