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

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

Issue 130693002: Revert 243714 "Update GPU feature tests to expect no GPU on Wind..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « trunk/src/chrome/test/gpu/gpu_feature_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/logging.h" 7 #include "base/logging.h"
8 #include "base/sys_info.h" 8 #include "base/sys_info.h"
9 #include "gpu/config/gpu_info.h" 9 #include "gpu/config/gpu_info.h"
10 #include "gpu/config/gpu_info_collector.h" 10 #include "gpu/config/gpu_info_collector.h"
11 #include "gpu/config/gpu_test_expectations_parser.h" 11 #include "gpu/config/gpu_test_expectations_parser.h"
12 12
13 #if defined(OS_MACOSX) 13 #if defined(OS_MACOSX)
14 #include "base/mac/mac_util.h" 14 #include "base/mac/mac_util.h"
15 #elif defined(OS_WIN)
16 #include "base/win/windows_version.h"
17 #endif 15 #endif
18 16
19 namespace gpu { 17 namespace gpu {
20 18
21 namespace { 19 namespace {
22 20
23 GPUTestConfig::OS GetCurrentOS() { 21 GPUTestConfig::OS GetCurrentOS() {
24 #if defined(OS_CHROMEOS) 22 #if defined(OS_CHROMEOS)
25 return GPUTestConfig::kOsChromeOS; 23 return GPUTestConfig::kOsChromeOS;
26 #elif defined(OS_LINUX) || defined(OS_OPENBSD) 24 #elif defined(OS_LINUX) || defined(OS_OPENBSD)
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 return false; 272 return false;
275 } 273 }
276 274
277 // static 275 // static
278 bool GPUTestBotConfig::GpuBlacklistedOnBot() { 276 bool GPUTestBotConfig::GpuBlacklistedOnBot() {
279 #if defined(OS_MACOSX) 277 #if defined(OS_MACOSX)
280 // Blacklist rule #81 disables all Gpu acceleration on Mac < 10.8 bots. 278 // Blacklist rule #81 disables all Gpu acceleration on Mac < 10.8 bots.
281 if (CurrentConfigMatches("MAC VMWARE") && base::mac::IsOSLionOrEarlier()) { 279 if (CurrentConfigMatches("MAC VMWARE") && base::mac::IsOSLionOrEarlier()) {
282 return true; 280 return true;
283 } 281 }
284 #elif defined(OS_WIN)
285 // Blacklist rule #79 disables all Gpu acceleration before Windows 7.
286 if (base::win::GetVersion() <= base::win::VERSION_VISTA) {
287 return false;
288 }
289 #endif 282 #endif
283 // TODO(ccameron): This should be true on Windows XP as well.
290 return false; 284 return false;
291 } 285 }
292 286
293 } // namespace gpu 287 } // namespace gpu
294 288
OLDNEW
« no previous file with comments | « trunk/src/chrome/test/gpu/gpu_feature_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698