OLD | NEW |
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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 enum API { | 51 enum API { |
52 kAPIUnknown = 0, | 52 kAPIUnknown = 0, |
53 kAPID3D9 = 1 << 0, | 53 kAPID3D9 = 1 << 0, |
54 kAPID3D11 = 1 << 1, | 54 kAPID3D11 = 1 << 1, |
55 kAPIGLDesktop = 1 << 2, | 55 kAPIGLDesktop = 1 << 2, |
56 kAPIGLES = 1 << 3, | 56 kAPIGLES = 1 << 3, |
57 }; | 57 }; |
58 | 58 |
59 GPUTestConfig(); | 59 GPUTestConfig(); |
| 60 GPUTestConfig(const GPUTestConfig& other); |
60 virtual ~GPUTestConfig(); | 61 virtual ~GPUTestConfig(); |
61 | 62 |
62 void set_os(int32_t os); | 63 void set_os(int32_t os); |
63 void set_gpu_device_id(uint32_t id); | 64 void set_gpu_device_id(uint32_t id); |
64 void set_build_type(int32_t build_type); | 65 void set_build_type(int32_t build_type); |
65 void set_api(int32_t api); | 66 void set_api(int32_t api); |
66 | 67 |
67 virtual void AddGPUVendor(uint32_t gpu_vendor); | 68 virtual void AddGPUVendor(uint32_t gpu_vendor); |
68 | 69 |
69 int32_t os() const { return os_; } | 70 int32_t os() const { return os_; } |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 static bool CurrentConfigMatches(const std::vector<std::string>& configs); | 138 static bool CurrentConfigMatches(const std::vector<std::string>& configs); |
138 | 139 |
139 // Check if the bot has blacklisted all GPU features. | 140 // Check if the bot has blacklisted all GPU features. |
140 static bool GpuBlacklistedOnBot(); | 141 static bool GpuBlacklistedOnBot(); |
141 }; | 142 }; |
142 | 143 |
143 } // namespace gpu | 144 } // namespace gpu |
144 | 145 |
145 #endif // GPU_CONFIG_GPU_TEST_CONFIG_H_ | 146 #endif // GPU_CONFIG_GPU_TEST_CONFIG_H_ |
146 | 147 |
OLD | NEW |