Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: gpu/config/gpu_control_list.cc

Issue 1018463002: Deprecate WinSAT support in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gpu_unittests Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
(...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 if (StringMismatch(gpu_info.gl_vendor, gl_vendor_info_)) 1197 if (StringMismatch(gpu_info.gl_vendor, gl_vendor_info_))
1198 return false; 1198 return false;
1199 if (StringMismatch(gpu_info.gl_renderer, gl_renderer_info_)) 1199 if (StringMismatch(gpu_info.gl_renderer, gl_renderer_info_))
1200 return false; 1200 return false;
1201 if (StringMismatch(gpu_info.gl_extensions, gl_extensions_info_)) 1201 if (StringMismatch(gpu_info.gl_extensions, gl_extensions_info_))
1202 return false; 1202 return false;
1203 if (gl_reset_notification_strategy_info_.get() != NULL && 1203 if (gl_reset_notification_strategy_info_.get() != NULL &&
1204 !gl_reset_notification_strategy_info_->Contains( 1204 !gl_reset_notification_strategy_info_->Contains(
1205 gpu_info.gl_reset_notification_strategy)) 1205 gpu_info.gl_reset_notification_strategy))
1206 return false; 1206 return false;
1207 if (perf_graphics_info_.get() != NULL &&
1208 (gpu_info.performance_stats.graphics == 0.0 ||
1209 !perf_graphics_info_->Contains(gpu_info.performance_stats.graphics)))
1210 return false;
1211 if (perf_gaming_info_.get() != NULL &&
1212 (gpu_info.performance_stats.gaming == 0.0 ||
1213 !perf_gaming_info_->Contains(gpu_info.performance_stats.gaming)))
1214 return false;
1215 if (perf_overall_info_.get() != NULL &&
1216 (gpu_info.performance_stats.overall == 0.0 ||
1217 !perf_overall_info_->Contains(gpu_info.performance_stats.overall)))
1218 return false;
1219 if (!machine_model_name_list_.empty()) { 1207 if (!machine_model_name_list_.empty()) {
1220 if (gpu_info.machine_model_name.empty()) 1208 if (gpu_info.machine_model_name.empty())
1221 return false; 1209 return false;
1222 bool found_match = false; 1210 bool found_match = false;
1223 for (size_t ii = 0; ii < machine_model_name_list_.size(); ++ii) { 1211 for (size_t ii = 0; ii < machine_model_name_list_.size(); ++ii) {
1224 if (RE2::FullMatch(gpu_info.machine_model_name, 1212 if (RE2::FullMatch(gpu_info.machine_model_name,
1225 machine_model_name_list_[ii])) { 1213 machine_model_name_list_[ii])) {
1226 found_match = true; 1214 found_match = true;
1227 break; 1215 break;
1228 } 1216 }
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
1523 const std::string& feature_name, int feature_id) { 1511 const std::string& feature_name, int feature_id) {
1524 feature_map_[feature_name] = feature_id; 1512 feature_map_[feature_name] = feature_id;
1525 } 1513 }
1526 1514
1527 void GpuControlList::set_supports_feature_type_all(bool supported) { 1515 void GpuControlList::set_supports_feature_type_all(bool supported) {
1528 supports_feature_type_all_ = supported; 1516 supports_feature_type_all_ = supported;
1529 } 1517 }
1530 1518
1531 } // namespace gpu 1519 } // namespace gpu
1532 1520
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698