Home | History | Annotate | Download | only in tests

Lines Matching refs:gPairs

183 static const Pair gPairs[] = {
212 for (size_t i = 0; i < SK_ARRAY_COUNT(gPairs); i++) {
214 setup_src_bitmaps(&srcOpaque, &srcPremul, gPairs[i].fColorType);
231 for (size_t j = 0; j < SK_ARRAY_COUNT(gPairs); j++) {
233 bool success = subset.copyTo(&copy, gPairs[j].fColorType);
237 REPORTER_ASSERT(reporter, gPairs[i].fColorType != gPairs[j].fColorType);
248 if (gPairs[i].fColorType == gPairs[j].fColorType) {
272 for (size_t i = 0; i < SK_ARRAY_COUNT(gPairs); i++) {
274 setup_src_bitmaps(&srcOpaque, &srcPremul, gPairs[i].fColorType);
276 for (size_t j = 0; j < SK_ARRAY_COUNT(gPairs); j++) {
279 bool success = srcPremul.copyTo(&dst, gPairs[j].fColorType);
280 bool expected = gPairs[i].fValid[j] != '0';
287 bool canSucceed = srcPremul.canCopyTo(gPairs[j].fColorType);
297 REPORTER_ASSERT(reporter, dst.colorType() == gPairs[j].fColorType);
335 gPairs[i].fColorType, kPremul_SkAlphaType));
343 switch (gPairs[i].fColorType) {
392 if (src.tryAllocPixels(SkImageInfo::Make(localSubW, subH, gPairs[i].fColorType,
446 gPairs[i].fColorType,