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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getSamples() == 4); | 117 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getSamples() == 4); |
118 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getUseNVPR()); | 118 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getUseNVPR()); |
119 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getUseDIText()); | 119 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getUseDIText()); |
120 REPORTER_ASSERT(reporter, !configs[16]->asConfigGpu()); | 120 REPORTER_ASSERT(reporter, !configs[16]->asConfigGpu()); |
121 REPORTER_ASSERT(reporter, !configs[17]->asConfigGpu()); | 121 REPORTER_ASSERT(reporter, !configs[17]->asConfigGpu()); |
122 REPORTER_ASSERT(reporter, !configs[18]->asConfigGpu()); | 122 REPORTER_ASSERT(reporter, !configs[18]->asConfigGpu()); |
123 REPORTER_ASSERT(reporter, !configs[19]->asConfigGpu()); | 123 REPORTER_ASSERT(reporter, !configs[19]->asConfigGpu()); |
124 REPORTER_ASSERT(reporter, !configs[24]->asConfigGpu()); | 124 REPORTER_ASSERT(reporter, !configs[24]->asConfigGpu()); |
125 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorType() == kRGB
A_F16_SkColorType); | 125 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorType() == kRGB
A_F16_SkColorType); |
126 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorSpace()); | 126 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorSpace()); |
127 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorSpace()->gamma
Named() == | 127 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorSpace()->gamma
IsLinear()); |
128 SkColorSpace::kLinear_GammaNamed); | |
129 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorSpace()->xyz()
== | 128 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorSpace()->xyz()
== |
130 srgbColorSpace->xyz()); | 129 srgbColorSpace->xyz()); |
131 REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorType() == kN32
_SkColorType); | 130 REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorType() == kN32
_SkColorType); |
132 REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorSpace() == srg
bColorSpace.get()); | 131 REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorSpace() == srg
bColorSpace.get()); |
133 REPORTER_ASSERT(reporter, configs[33]->asConfigGpu()->getContextType() == | 132 REPORTER_ASSERT(reporter, configs[33]->asConfigGpu()->getContextType() == |
134 GrContextFactory::kGL_ContextType); | 133 GrContextFactory::kGL_ContextType); |
135 REPORTER_ASSERT(reporter, configs[33]->asConfigGpu()->getUseInstanced()); | 134 REPORTER_ASSERT(reporter, configs[33]->asConfigGpu()->getUseInstanced()); |
136 REPORTER_ASSERT(reporter, configs[34]->asConfigGpu()->getContextType() == | 135 REPORTER_ASSERT(reporter, configs[34]->asConfigGpu()->getContextType() == |
137 GrContextFactory::kGL_ContextType); | 136 GrContextFactory::kGL_ContextType); |
138 REPORTER_ASSERT(reporter, configs[34]->asConfigGpu()->getUseInstanced()); | 137 REPORTER_ASSERT(reporter, configs[34]->asConfigGpu()->getUseInstanced()); |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 REPORTER_ASSERT(reporter, | 399 REPORTER_ASSERT(reporter, |
401 configs[i]->getViaParts()[j].equals(expectedConfigs[
i].vias[j])); | 400 configs[i]->getViaParts()[j].equals(expectedConfigs[
i].vias[j])); |
402 } | 401 } |
403 } | 402 } |
404 #if SK_SUPPORT_GPU | 403 #if SK_SUPPORT_GPU |
405 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()); | 404 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()); |
406 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu()); | 405 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu()); |
407 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu()); | 406 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu()); |
408 #endif | 407 #endif |
409 } | 408 } |
OLD | NEW |