| 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 "Test.h" | 9 #include "Test.h" |
| 10 #include <initializer_list> | 10 #include <initializer_list> |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu()); | 162 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu()); |
| 163 #endif | 163 #endif |
| 164 #if SK_MESA | 164 #if SK_MESA |
| 165 REPORTER_ASSERT(reporter, configs[3]->asConfigGpu()->getContextType() == | 165 REPORTER_ASSERT(reporter, configs[3]->asConfigGpu()->getContextType() == |
| 166 GrContextFactory::kMESA_GLContextType); | 166 GrContextFactory::kMESA_GLContextType); |
| 167 #else | 167 #else |
| 168 REPORTER_ASSERT(reporter, !configs[3]->asConfigGpu()); | 168 REPORTER_ASSERT(reporter, !configs[3]->asConfigGpu()); |
| 169 #endif | 169 #endif |
| 170 #if SK_COMMAND_BUFFER | 170 #if SK_COMMAND_BUFFER |
| 171 REPORTER_ASSERT(reporter, configs[4]->asConfigGpu()->getContextType() == | 171 REPORTER_ASSERT(reporter, configs[4]->asConfigGpu()->getContextType() == |
| 172 GrContextFactory::kCommandBuffer_GLContextType); | 172 GrContextFactory::kCommandBufferES2_GLContextType); |
| 173 | 173 |
| 174 #else | 174 #else |
| 175 REPORTER_ASSERT(reporter, !configs[4]->asConfigGpu()); | 175 REPORTER_ASSERT(reporter, !configs[4]->asConfigGpu()); |
| 176 #endif | 176 #endif |
| 177 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getContextType() == | 177 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getContextType() == |
| 178 GrContextFactory::kNative_GLContextType); | 178 GrContextFactory::kNative_GLContextType); |
| 179 REPORTER_ASSERT(reporter, !configs[5]->asConfigGpu()->getUseNVPR()); | 179 REPORTER_ASSERT(reporter, !configs[5]->asConfigGpu()->getUseNVPR()); |
| 180 REPORTER_ASSERT(reporter, !configs[5]->asConfigGpu()->getUseDIText()); | 180 REPORTER_ASSERT(reporter, !configs[5]->asConfigGpu()->getUseDIText()); |
| 181 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getSamples() == 0); | 181 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getSamples() == 0); |
| 182 REPORTER_ASSERT(reporter, configs[6]->asConfigGpu()->getContextType() == | 182 REPORTER_ASSERT(reporter, configs[6]->asConfigGpu()->getContextType() == |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 REPORTER_ASSERT(reporter, | 307 REPORTER_ASSERT(reporter, |
| 308 configs[i]->getViaParts()[j].equals(expectedConfigs[
i].vias[j])); | 308 configs[i]->getViaParts()[j].equals(expectedConfigs[
i].vias[j])); |
| 309 } | 309 } |
| 310 } | 310 } |
| 311 #if SK_SUPPORT_GPU | 311 #if SK_SUPPORT_GPU |
| 312 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()); | 312 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()); |
| 313 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu()); | 313 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu()); |
| 314 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu()); | 314 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu()); |
| 315 #endif | 315 #endif |
| 316 } | 316 } |
| OLD | NEW |