OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkCommonFlagsConfig.h" | 8 #include "SkCommonFlagsConfig.h" |
9 #include "SkColorSpace.h" | 9 #include "SkColorSpace.h" |
10 #include "Test.h" | 10 #include "Test.h" |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 #ifdef SK_BUILD_FOR_WIN | 172 #ifdef SK_BUILD_FOR_WIN |
173 REPORTER_ASSERT(reporter, configs[20]->asConfigGpu()); | 173 REPORTER_ASSERT(reporter, configs[20]->asConfigGpu()); |
174 #else | 174 #else |
175 REPORTER_ASSERT(reporter, !configs[20]->asConfigGpu()); | 175 REPORTER_ASSERT(reporter, !configs[20]->asConfigGpu()); |
176 #endif | 176 #endif |
177 REPORTER_ASSERT(reporter, configs[21]->asConfigGpu()); | 177 REPORTER_ASSERT(reporter, configs[21]->asConfigGpu()); |
178 #else | 178 #else |
179 REPORTER_ASSERT(reporter, !configs[20]->asConfigGpu()); | 179 REPORTER_ASSERT(reporter, !configs[20]->asConfigGpu()); |
180 REPORTER_ASSERT(reporter, !configs[21]->asConfigGpu()); | 180 REPORTER_ASSERT(reporter, !configs[21]->asConfigGpu()); |
181 #endif | 181 #endif |
182 #if SK_COMMAND_BUFFER | |
183 REPORTER_ASSERT(reporter, configs[22]->asConfigGpu()); | 182 REPORTER_ASSERT(reporter, configs[22]->asConfigGpu()); |
184 #else | |
185 REPORTER_ASSERT(reporter, !configs[22]->asConfigGpu()); | |
186 #endif | |
187 #if SK_MESA | 183 #if SK_MESA |
188 REPORTER_ASSERT(reporter, configs[23]->asConfigGpu()); | 184 REPORTER_ASSERT(reporter, configs[23]->asConfigGpu()); |
189 #else | 185 #else |
190 REPORTER_ASSERT(reporter, !configs[23]->asConfigGpu()); | 186 REPORTER_ASSERT(reporter, !configs[23]->asConfigGpu()); |
191 #endif | 187 #endif |
192 REPORTER_ASSERT(reporter, configs[27]->asConfigGpu()); | 188 REPORTER_ASSERT(reporter, configs[27]->asConfigGpu()); |
193 REPORTER_ASSERT(reporter, configs[28]->asConfigGpu()); | 189 REPORTER_ASSERT(reporter, configs[28]->asConfigGpu()); |
194 REPORTER_ASSERT(reporter, configs[28]->asConfigGpu()->getSamples() == 4); | 190 REPORTER_ASSERT(reporter, configs[28]->asConfigGpu()->getSamples() == 4); |
195 REPORTER_ASSERT(reporter, configs[28]->asConfigGpu()->getUseNVPR()); | 191 REPORTER_ASSERT(reporter, configs[28]->asConfigGpu()->getUseNVPR()); |
196 REPORTER_ASSERT(reporter, configs[29]->asConfigGpu()); | 192 REPORTER_ASSERT(reporter, configs[29]->asConfigGpu()); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 #else | 241 #else |
246 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu()); | 242 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu()); |
247 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu()); | 243 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu()); |
248 #endif | 244 #endif |
249 #if SK_MESA | 245 #if SK_MESA |
250 REPORTER_ASSERT(reporter, configs[3]->asConfigGpu()->getContextType() == | 246 REPORTER_ASSERT(reporter, configs[3]->asConfigGpu()->getContextType() == |
251 GrContextFactory::kMESA_ContextType); | 247 GrContextFactory::kMESA_ContextType); |
252 #else | 248 #else |
253 REPORTER_ASSERT(reporter, !configs[3]->asConfigGpu()); | 249 REPORTER_ASSERT(reporter, !configs[3]->asConfigGpu()); |
254 #endif | 250 #endif |
255 #if SK_COMMAND_BUFFER | |
256 REPORTER_ASSERT(reporter, configs[4]->asConfigGpu()->getContextType() == | 251 REPORTER_ASSERT(reporter, configs[4]->asConfigGpu()->getContextType() == |
257 GrContextFactory::kCommandBuffer_ContextType); | 252 GrContextFactory::kCommandBuffer_ContextType); |
258 | 253 |
259 #else | |
260 REPORTER_ASSERT(reporter, !configs[4]->asConfigGpu()); | |
261 #endif | |
262 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getContextType() == | 254 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getContextType() == |
263 GrContextFactory::kNativeGL_ContextType); | 255 GrContextFactory::kNativeGL_ContextType); |
264 REPORTER_ASSERT(reporter, !configs[5]->asConfigGpu()->getUseNVPR()); | 256 REPORTER_ASSERT(reporter, !configs[5]->asConfigGpu()->getUseNVPR()); |
265 REPORTER_ASSERT(reporter, !configs[5]->asConfigGpu()->getUseDIText()); | 257 REPORTER_ASSERT(reporter, !configs[5]->asConfigGpu()->getUseDIText()); |
266 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getSamples() == 0); | 258 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getSamples() == 0); |
267 REPORTER_ASSERT(reporter, configs[6]->asConfigGpu()->getContextType() == | 259 REPORTER_ASSERT(reporter, configs[6]->asConfigGpu()->getContextType() == |
268 GrContextFactory::kGLES_ContextType); | 260 GrContextFactory::kGLES_ContextType); |
269 REPORTER_ASSERT(reporter, !configs[6]->asConfigGpu()->getUseNVPR()); | 261 REPORTER_ASSERT(reporter, !configs[6]->asConfigGpu()->getUseNVPR()); |
270 REPORTER_ASSERT(reporter, !configs[6]->asConfigGpu()->getUseDIText()); | 262 REPORTER_ASSERT(reporter, !configs[6]->asConfigGpu()->getUseDIText()); |
271 REPORTER_ASSERT(reporter, configs[6]->asConfigGpu()->getSamples() == 0); | 263 REPORTER_ASSERT(reporter, configs[6]->asConfigGpu()->getSamples() == 0); |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 REPORTER_ASSERT(reporter, | 396 REPORTER_ASSERT(reporter, |
405 configs[i]->getViaParts()[j].equals(expectedConfigs[
i].vias[j])); | 397 configs[i]->getViaParts()[j].equals(expectedConfigs[
i].vias[j])); |
406 } | 398 } |
407 } | 399 } |
408 #if SK_SUPPORT_GPU | 400 #if SK_SUPPORT_GPU |
409 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()); | 401 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()); |
410 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu()); | 402 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu()); |
411 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu()); | 403 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu()); |
412 #endif | 404 #endif |
413 } | 405 } |
OLD | NEW |