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

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

Issue 2729103004: gpu/config: remove CollectGpuID (Closed)
Patch Set: Fix Mac warning Created 3 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) 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_test_config.h" 5 #include "gpu/config/gpu_test_config.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 248
249 if (!parser.ParseConfig(config_data, &config)) 249 if (!parser.ParseConfig(config_data, &config))
250 return false; 250 return false;
251 return Matches(config); 251 return Matches(config);
252 } 252 }
253 253
254 bool GPUTestBotConfig::LoadCurrentConfig(const GPUInfo* gpu_info) { 254 bool GPUTestBotConfig::LoadCurrentConfig(const GPUInfo* gpu_info) {
255 bool rt; 255 bool rt;
256 if (gpu_info == NULL) { 256 if (gpu_info == NULL) {
257 GPUInfo my_gpu_info; 257 GPUInfo my_gpu_info;
258 CollectInfoResult result = CollectGpuID( 258 CollectInfoResult result = CollectBasicGraphicsInfo(&my_gpu_info);
259 &my_gpu_info.gpu.vendor_id, &my_gpu_info.gpu.device_id);
260 if (result != kCollectInfoSuccess) { 259 if (result != kCollectInfoSuccess) {
261 LOG(ERROR) << "Fail to identify GPU"; 260 LOG(ERROR) << "Fail to identify GPU";
262 DisableGPUInfoValidation(); 261 DisableGPUInfoValidation();
263 rt = true; 262 rt = true;
264 } else { 263 } else {
265 rt = SetGPUInfo(my_gpu_info); 264 rt = SetGPUInfo(my_gpu_info);
266 } 265 }
267 } else { 266 } else {
268 rt = SetGPUInfo(*gpu_info); 267 rt = SetGPUInfo(*gpu_info);
269 } 268 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 // Blacklist rule #79 disables all Gpu acceleration before Windows 7. 306 // Blacklist rule #79 disables all Gpu acceleration before Windows 7.
308 if (base::win::GetVersion() <= base::win::VERSION_VISTA) { 307 if (base::win::GetVersion() <= base::win::VERSION_VISTA) {
309 return true; 308 return true;
310 } 309 }
311 #endif 310 #endif
312 return false; 311 return false;
313 } 312 }
314 313
315 } // namespace gpu 314 } // namespace gpu
316 315
OLDNEW
« content/browser/gpu/gpu_data_manager_impl_private.cc ('K') | « gpu/config/gpu_info_collector_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698