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 "content/browser/gpu/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" | 10 #include "base/string_util.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 "base/sys_info.h" | 13 #include "base/sys_info.h" |
14 #include "content/browser/gpu/gpu_util.h" | 14 #include "gpu/config/gpu_info.h" |
15 #include "content/public/common/gpu_info.h" | 15 #include "gpu/config/gpu_util.h" |
16 | 16 |
17 namespace content { | 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, |
23 char splitter, | 23 char splitter, |
24 std::vector<std::string>* version) { | 24 std::vector<std::string>* version) { |
25 DCHECK(version); | 25 DCHECK(version); |
26 base::SplitString(version_string, splitter, version); | 26 base::SplitString(version_string, splitter, version); |
27 if (version->size() == 0) | 27 if (version->size() == 0) |
(...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1404 | 1404 |
1405 void GpuControlList::AddSupportedFeature( | 1405 void GpuControlList::AddSupportedFeature( |
1406 const std::string& feature_name, int feature_id) { | 1406 const std::string& feature_name, int feature_id) { |
1407 feature_map_[feature_name] = feature_id; | 1407 feature_map_[feature_name] = feature_id; |
1408 } | 1408 } |
1409 | 1409 |
1410 void GpuControlList::set_supports_feature_type_all(bool supported) { | 1410 void GpuControlList::set_supports_feature_type_all(bool supported) { |
1411 supports_feature_type_all_ = supported; | 1411 supports_feature_type_all_ = supported; |
1412 } | 1412 } |
1413 | 1413 |
1414 } // namespace content | 1414 } // namespace gpu |
1415 | 1415 |
OLD | NEW |