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

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

Issue 1246203003: Add Windows 10 support to GPU config parser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | gpu/config/gpu_test_config.cc » ('j') | gpu/config/gpu_test_config.cc » ('J')
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 #ifndef GPU_CONFIG_GPU_TEST_CONFIG_H_ 5 #ifndef GPU_CONFIG_GPU_TEST_CONFIG_H_
6 #define GPU_CONFIG_GPU_TEST_CONFIG_H_ 6 #define GPU_CONFIG_GPU_TEST_CONFIG_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "gpu/gpu_export.h" 13 #include "gpu/gpu_export.h"
14 14
15 namespace gpu { 15 namespace gpu {
16 16
17 struct GPUInfo; 17 struct GPUInfo;
18 18
19 class GPU_EXPORT GPUTestConfig { 19 class GPU_EXPORT GPUTestConfig {
20 public: 20 public:
21 enum OS { 21 enum OS {
22 kOsUnknown = 0, 22 kOsUnknown = 0,
23 kOsWinXP = 1 << 0, 23 kOsWinXP = 1 << 0,
24 kOsWinVista = 1 << 1, 24 kOsWinVista = 1 << 1,
25 kOsWin7 = 1 << 2, 25 kOsWin7 = 1 << 2,
26 kOsWin8 = 1 << 3, 26 kOsWin8 = 1 << 3,
27 kOsWin = kOsWinXP | kOsWinVista | kOsWin7 | kOsWin8,
28 kOsMacLeopard = 1 << 4, 27 kOsMacLeopard = 1 << 4,
29 kOsMacSnowLeopard = 1 << 5, 28 kOsMacSnowLeopard = 1 << 5,
30 kOsMacLion = 1 << 6, 29 kOsMacLion = 1 << 6,
31 kOsMacMountainLion = 1 << 7, 30 kOsMacMountainLion = 1 << 7,
32 kOsMacMavericks = 1 << 8, 31 kOsMacMavericks = 1 << 8,
33 kOsMacYosemite = 1 << 9, 32 kOsMacYosemite = 1 << 9,
34 kOsMac = kOsMacLeopard | kOsMacSnowLeopard | kOsMacLion | 33 kOsMac = kOsMacLeopard | kOsMacSnowLeopard | kOsMacLion |
35 kOsMacMountainLion | kOsMacMavericks | kOsMacYosemite, 34 kOsMacMountainLion | kOsMacMavericks | kOsMacYosemite,
36 kOsLinux = 1 << 10, 35 kOsLinux = 1 << 10,
37 kOsChromeOS = 1 << 11, 36 kOsChromeOS = 1 << 11,
38 kOsAndroid = 1 << 12, 37 kOsAndroid = 1 << 12,
38 kOsWin10 = 1 << 13,
39 kOsWin = kOsWinXP | kOsWinVista | kOsWin7 | kOsWin8 | kOsWin10,
39 }; 40 };
40 41
41 enum BuildType { 42 enum BuildType {
42 kBuildTypeUnknown = 0, 43 kBuildTypeUnknown = 0,
43 kBuildTypeRelease = 1 << 0, 44 kBuildTypeRelease = 1 << 0,
44 kBuildTypeDebug = 1 << 1, 45 kBuildTypeDebug = 1 << 1,
45 }; 46 };
46 47
47 GPUTestConfig(); 48 GPUTestConfig();
48 virtual ~GPUTestConfig(); 49 virtual ~GPUTestConfig();
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 static bool CurrentConfigMatches(const std::vector<std::string>& configs); 121 static bool CurrentConfigMatches(const std::vector<std::string>& configs);
121 122
122 // Check if the bot has blacklisted all GPU features. 123 // Check if the bot has blacklisted all GPU features.
123 static bool GpuBlacklistedOnBot(); 124 static bool GpuBlacklistedOnBot();
124 }; 125 };
125 126
126 } // namespace gpu 127 } // namespace gpu
127 128
128 #endif // GPU_CONFIG_GPU_TEST_CONFIG_H_ 129 #endif // GPU_CONFIG_GPU_TEST_CONFIG_H_
129 130
OLDNEW
« no previous file with comments | « no previous file | gpu/config/gpu_test_config.cc » ('j') | gpu/config/gpu_test_config.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698