Home | History | Annotate | Download | only in tests

Lines Matching refs:configs

36     SkCommandLineConfigArray configs;
37 ParseConfigs(config1, &configs);
39 REPORTER_ASSERT(reporter, configs.count() == 1);
40 REPORTER_ASSERT(reporter, configs[0]->getTag().equals("gl"));
41 REPORTER_ASSERT(reporter, configs[0]->getViaParts().count() == 0);
43 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu());
44 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getContextType()
46 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getUseNVPR() == false);
47 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getUseDIText() == false);
48 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getSamples() == 1);
49 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getColorType() == kRGBA_8888_SkColorType);
50 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getColorSpace() == nullptr);
57 SkCommandLineConfigArray configs;
58 ParseConfigs(config1, &configs);
59 REPORTER_ASSERT(reporter, configs.count() == 1);
60 REPORTER_ASSERT(reporter, configs[0]->getTag().equals("gles"));
63 ParseConfigs(config2, &configs);
64 REPORTER_ASSERT(reporter, configs.count() == 1);
65 REPORTER_ASSERT(reporter, configs[0]->getTag().equals("8888"));
68 ParseConfigs(config3, &configs);
69 REPORTER_ASSERT(reporter, configs.count() == 1);
70 REPORTER_ASSERT(reporter, configs[0]->getTag().equals("gl"));
74 // Parses all default configs and returns correct "tag".
117 SkCommandLineConfigArray configs;
118 ParseConfigs(config1, &configs);
122 REPORTER_ASSERT(reporter, configs.count() == config1.count());
124 REPORTER_ASSERT(reporter, configs[i]->getTag().equals(config1[i]));
125 REPORTER_ASSERT(reporter, configs[i]->getViaParts().count() == 0);
128 REPORTER_ASSERT(reporter, !configs[0]->asConfigGpu());
129 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu());
130 REPORTER_ASSERT(reporter, configs[2]->asConfigGpu());
131 REPORTER_ASSERT(reporter, configs[3]->asConfigGpu());
132 REPORTER_ASSERT(reporter, configs[4]->asConfigGpu()->getUseDIText());
133 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu());
134 REPORTER_ASSERT(reporter, configs[6]->asConfigGpu()->getSamples() == 8);
135 REPORTER_ASSERT(reporter, configs[7]->asConfigGpu()->getSamples() == 4);
136 REPORTER_ASSERT(reporter, !configs[8]->asConfigGpu());
137 REPORTER_ASSERT(reporter, configs[9]->asConfigGpu());
138 REPORTER_ASSERT(reporter, configs[10]->asConfigGpu());
139 REPORTER_ASSERT(reporter, configs[11]->asConfigGpu()->getSamples() == 8);
140 REPORTER_ASSERT(reporter, configs[11]->asConfigGpu()->getUseNVPR());
141 REPORTER_ASSERT(reporter, !configs[11]->asConfigGpu()->getUseDIText());
142 REPORTER_ASSERT(reporter, configs[12]->asConfigGpu()->getSamples() == 4);
143 REPORTER_ASSERT(reporter, configs[12]->asConfigGpu()->getUseNVPR());
144 REPORTER_ASSERT(reporter, !configs[12]->asConfigGpu()->getUseDIText());
145 REPORTER_ASSERT(reporter, !configs[13]->asConfigGpu());
146 REPORTER_ASSERT(reporter, !configs[14]->asConfigGpu());
147 REPORTER_ASSERT(reporter, !configs[15]->asConfigGpu());
148 REPORTER_ASSERT(reporter, !configs[16]->asConfigGpu());
149 REPORTER_ASSERT(reporter, configs[17]->asConfigGpu());
150 REPORTER_ASSERT(reporter, configs[18]->asConfigGpu());
151 REPORTER_ASSERT(reporter, configs[19]->asConfigGpu());
152 REPORTER_ASSERT(reporter, !configs[20]->asConfigGpu());
153 REPORTER_ASSERT(reporter, !configs[21]->asConfigGpu());
154 REPORTER_ASSERT(reporter, configs[22]->asConfigGpu()->getColorType() == kRGBA_F16_SkColorType);
155 REPORTER_ASSERT(reporter, configs[22]->asConfigGpu()->getColorSpace());
156 REPORTER_ASSERT(reporter, configs[22]->asConfigGpu()->getColorSpace()->gammaIsLinear());
159 const SkMatrix44* config25XYZ = configs[22]->asConfigGpu()->getColorSpace()->toXYZD50();
162 REPORTER_ASSERT(reporter, configs[23]->asConfigGpu()->getColorType() == kRGBA_8888_SkColorType);
163 REPORTER_ASSERT(reporter, configs[23]->asConfigGpu()->getColorSpace() == srgbColorSpace.get());
164 REPORTER_ASSERT(reporter, configs[24]->asConfigGpu());
165 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu());
166 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getSamples() == 4);
167 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getUseNVPR());
168 REPORTER_ASSERT(reporter, configs[26]->asConfigGpu());
169 REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorType() == kRGBA_8888_SkColorType);
170 REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorSpace() == srgbColorSpace.get());
171 REPORTER_ASSERT(reporter, configs[27]->asConfigGpu());
172 REPORTER_ASSERT(reporter, configs[27]->asConfigGpu()->getSamples() == 4);
174 REPORTER_ASSERT(reporter, configs[28]->asConfigGpu());
176 REPORTER_ASSERT(reporter, configs[29]->asConfigGpu()->getColorType() == kRGBA_F16_SkColorType);
177 REPORTER_ASSERT(reporter, configs[29]->asConfigGpu()->getColorSpace());
178 REPORTER_ASSERT(reporter, configs[29]->asConfigGpu()->getColorSpace()->gammaIsLinear());
179 const SkMatrix44* config41XYZ = configs[29]->asConfigGpu()->getColorSpace()->toXYZD50();
182 REPORTER_ASSERT(reporter, configs[30]->asConfigGpu()->getColorType() == kRGBA_F16_SkColorType);
183 REPORTER_ASSERT(reporter, configs[30]->asConfigGpu()->getColorSpace());
184 REPORTER_ASSERT(reporter, configs[30]->asConfigGpu()->getColorSpace()->gammaIsLinear());
185 REPORTER_ASSERT(reporter, *configs[30]->asConfigGpu()->getColorSpace()->toXYZD50() !=
187 REPORTER_ASSERT(reporter, configs[31]->asConfigGpu()->getContextType() ==
189 REPORTER_ASSERT(reporter, SkToBool(configs[31]->asConfigGpu()->getContextOverrides() &
191 REPORTER_ASSERT(reporter, configs[32]->asConfigGpu()->getContextType() ==
194 REPORTER_ASSERT(reporter, configs[34]->asConfigGpu()->getContextType() ==
196 REPORTER_ASSERT(reporter, configs[34]->asConfigGpu()->getColorType() == kARGB_4444_SkColorType);
197 REPORTER_ASSERT(reporter, configs[34]->asConfigGpu()->getAlphaType() == kPremul_SkAlphaType);
198 REPORTER_ASSERT(reporter, configs[35]->asConfigGpu()->getContextType() ==
200 REPORTER_ASSERT(reporter, configs[35]->asConfigGpu()->getColorType() == kRGB_565_SkColorType);
201 REPORTER_ASSERT(reporter, configs[35]->asConfigGpu()->getAlphaType() == kOpaque_SkAlphaType);
202 REPORTER_ASSERT(reporter, configs[36]->asConfigGpu());
203 REPORTER_ASSERT(reporter, configs[36]->asConfigGpu()->getTestThreading());
204 REPORTER_ASSERT(reporter, configs[37]->asConfigGpu());
205 REPORTER_ASSERT(reporter, configs[37]->asConfigGpu()->getColorType() ==
224 SkCommandLineConfigArray configs;
225 ParseConfigs(config1, &configs);
226 REPORTER_ASSERT(reporter, configs.count() == config1.count());
228 REPORTER_ASSERT(reporter, configs[i]->getTag().equals(config1[i]));
231 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getContextType() ==
233 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getUseNVPR());
234 REPORTER_ASSERT(reporter, !configs[0]->asConfigGpu()->getUseDIText());
235 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getSamples() == 1);
236 REPORTER_ASSERT(reporter, configs[1]->asConfigGpu()->getContextType() ==
238 REPORTER_ASSERT(reporter, configs[1]->asConfigGpu());
239 REPORTER_ASSERT(reporter, configs[2]->asConfigGpu()->getContextType() ==
241 REPORTER_ASSERT(reporter, configs[2]->asConfigGpu());
242 REPORTER_ASSERT(reporter, !configs[3]->asConfigGpu());
243 REPORTER_ASSERT(reporter, configs[4]->asConfigGpu()->getContextType() ==
245 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getContextType() ==
247 REPORTER_ASSERT(reporter, !configs[5]->asConfigGpu()->getUseNVPR());
248 REPORTER_ASSERT(reporter, !configs[5]->asConfigGpu()->getUseDIText());
249 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getSamples() == 1);
250 REPORTER_ASSERT(reporter, configs[6]->asConfigGpu()->getContextType() ==
252 REPORTER_ASSERT(reporter, !configs[6]->asConfigGpu()->getUseNVPR());
253 REPORTER_ASSERT(reporter, !configs[6]->asConfigGpu()->getUseDIText());
254 REPORTER_ASSERT(reporter, configs[6]->asConfigGpu()->getSamples() == 1);
256 REPORTER_ASSERT(reporter, configs[7]->asConfigGpu()->getContextType() ==
258 REPORTER_ASSERT(reporter, !configs[7]->asConfigGpu()->getUseNVPR());
259 REPORTER_ASSERT(reporter, !configs[7]->asConfigGpu()->getUseDIText());
260 REPORTER_ASSERT(reporter, configs[7]->asConfigGpu()->getSamples() == 1);
263 REPORTER_ASSERT(reporter, configs[8]->asConfigGpu()->getContextType() ==
265 REPORTER_ASSERT(reporter, !configs[8]->asConfigGpu()->getUseNVPR());
266 REPORTER_ASSERT(reporter, !configs[8]->asConfigGpu()->getUseDIText());
267 REPORTER_ASSERT(reporter, configs[8]->asConfigGpu()->getSamples() == 0);
269 REPORTER_ASSERT(reporter, configs[9]->asConfigGpu()->getContextType() ==
292 SkCommandLineConfigArray configs;
293 ParseConfigs(config1, &configs);
294 REPORTER_ASSERT(reporter, configs.count() == config1.count());
296 REPORTER_ASSERT(reporter, configs[i]->getTag().equals(config1[i]));
297 REPORTER_ASSERT(reporter, configs[i]->getBackend().equals(config1[i]));
299 REPORTER_ASSERT(reporter, !configs[i]->asConfigGpu());
307 // Options are not canonized -> two same configs have a different tag.
312 SkCommandLineConfigArray configs;
313 ParseConfigs(config1, &configs);
314 REPORTER_ASSERT(reporter, configs.count() == config1.count());
316 REPORTER_ASSERT(reporter, configs[i]->getTag().equals(config1[i]));
318 REPORTER_ASSERT(reporter, configs[i]->getBackend().equals("gpu"));
319 REPORTER_ASSERT(reporter, configs[i]->asConfigGpu());
321 REPORTER_ASSERT(reporter, configs[i]->getBackend().equals(config1[i]));
334 SkCommandLineConfigArray configs;
335 ParseConfigs(config1, &configs);
345 REPORTER_ASSERT(reporter, configs[i]->getTag().equals(config1[i]));
346 REPORTER_ASSERT(reporter, configs[i]->getBackend().equals(expectedConfigs[i].backend));
349 REPORTER_ASSERT(reporter, configs[i]->getViaParts().count() == j);
353 configs[i]->getViaParts()[j].equals(expectedConfigs[i].vias[j]));
367 SkCommandLineConfigArray configs;
368 ParseConfigs(config1, &configs);
387 REPORTER_ASSERT(reporter, configs[i]->getTag().equals(config1[i]));
388 REPORTER_ASSERT(reporter, configs[i]->getBackend().equals(expectedConfigs[i].backend));
391 REPORTER_ASSERT(reporter, configs[i]->getViaParts().count() ==
396 configs[i]->getViaParts()[j].equals(expectedConfigs[i].vias[j]));
400 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu());
401 REPORTER_ASSERT(reporter, configs[1]->asConfigGpu());
402 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu());
403 REPORTER_ASSERT(reporter, !configs[3]->asConfigGpu());