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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 REPORTER_ASSERT(reporter, configs[14]->asConfigGpu()->getUseDIText()); | 114 REPORTER_ASSERT(reporter, configs[14]->asConfigGpu()->getUseDIText()); |
115 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getSamples() == 4); | 115 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getSamples() == 4); |
116 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getUseNVPR()); | 116 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getUseNVPR()); |
117 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getUseDIText()); | 117 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getUseDIText()); |
118 REPORTER_ASSERT(reporter, !configs[16]->asConfigGpu()); | 118 REPORTER_ASSERT(reporter, !configs[16]->asConfigGpu()); |
119 REPORTER_ASSERT(reporter, !configs[17]->asConfigGpu()); | 119 REPORTER_ASSERT(reporter, !configs[17]->asConfigGpu()); |
120 REPORTER_ASSERT(reporter, !configs[18]->asConfigGpu()); | 120 REPORTER_ASSERT(reporter, !configs[18]->asConfigGpu()); |
121 REPORTER_ASSERT(reporter, !configs[19]->asConfigGpu()); | 121 REPORTER_ASSERT(reporter, !configs[19]->asConfigGpu()); |
122 REPORTER_ASSERT(reporter, !configs[24]->asConfigGpu()); | 122 REPORTER_ASSERT(reporter, !configs[24]->asConfigGpu()); |
123 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorType() == kRGB
A_F16_SkColorType); | 123 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorType() == kRGB
A_F16_SkColorType); |
124 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorSpace() == nul
lptr); | 124 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorSpace() == srg
bColorSpace.get()); |
125 REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorType() == kN32
_SkColorType); | 125 REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorType() == kN32
_SkColorType); |
126 REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorSpace() == srg
bColorSpace.get()); | 126 REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorSpace() == srg
bColorSpace.get()); |
127 | 127 |
128 #if SK_ANGLE | 128 #if SK_ANGLE |
129 #ifdef SK_BUILD_FOR_WIN | 129 #ifdef SK_BUILD_FOR_WIN |
130 REPORTER_ASSERT(reporter, configs[20]->asConfigGpu()); | 130 REPORTER_ASSERT(reporter, configs[20]->asConfigGpu()); |
131 #else | 131 #else |
132 REPORTER_ASSERT(reporter, !configs[20]->asConfigGpu()); | 132 REPORTER_ASSERT(reporter, !configs[20]->asConfigGpu()); |
133 #endif | 133 #endif |
134 REPORTER_ASSERT(reporter, configs[21]->asConfigGpu()); | 134 REPORTER_ASSERT(reporter, configs[21]->asConfigGpu()); |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 REPORTER_ASSERT(reporter, | 357 REPORTER_ASSERT(reporter, |
358 configs[i]->getViaParts()[j].equals(expectedConfigs[
i].vias[j])); | 358 configs[i]->getViaParts()[j].equals(expectedConfigs[
i].vias[j])); |
359 } | 359 } |
360 } | 360 } |
361 #if SK_SUPPORT_GPU | 361 #if SK_SUPPORT_GPU |
362 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()); | 362 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()); |
363 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu()); | 363 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu()); |
364 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu()); | 364 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu()); |
365 #endif | 365 #endif |
366 } | 366 } |
OLD | NEW |