| 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/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "base/strings/string_split.h" | 11 #include "base/strings/string_split.h" |
| 12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 14 #include "base/sys_info.h" | 14 #include "base/sys_info.h" |
| 15 #include "gpu/config/gpu_info.h" | 15 #include "gpu/config/gpu_info.h" |
| 16 #include "gpu/config/gpu_util.h" | 16 #include "gpu/config/gpu_util.h" |
| 17 #include "third_party/re2/re2/re2.h" | 17 #include "third_party/re2/src/re2/re2.h" |
| 18 | 18 |
| 19 namespace gpu { | 19 namespace gpu { |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 // Break a version string into segments. Return true if each segment is | 22 // Break a version string into segments. Return true if each segment is |
| 23 // a valid number, and not all segment is 0. | 23 // a valid number, and not all segment is 0. |
| 24 bool ProcessVersionString(const std::string& version_string, | 24 bool ProcessVersionString(const std::string& version_string, |
| 25 char splitter, | 25 char splitter, |
| 26 std::vector<std::string>* version) { | 26 std::vector<std::string>* version) { |
| 27 DCHECK(version); | 27 DCHECK(version); |
| (...skipping 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1580 const std::string& feature_name, int feature_id) { | 1580 const std::string& feature_name, int feature_id) { |
| 1581 feature_map_[feature_name] = feature_id; | 1581 feature_map_[feature_name] = feature_id; |
| 1582 } | 1582 } |
| 1583 | 1583 |
| 1584 void GpuControlList::set_supports_feature_type_all(bool supported) { | 1584 void GpuControlList::set_supports_feature_type_all(bool supported) { |
| 1585 supports_feature_type_all_ = supported; | 1585 supports_feature_type_all_ = supported; |
| 1586 } | 1586 } |
| 1587 | 1587 |
| 1588 } // namespace gpu | 1588 } // namespace gpu |
| 1589 | 1589 |
| OLD | NEW |