Lines Matching refs:ctInfo
1259 const auto& ctInfo = fFormatTable[i].fColorTypeInfos[j];
1261 writer->appendHexU32("colorType", (uint32_t)ctInfo.fColorType);
1262 writer->appendHexU32("flags", ctInfo.fFlags);
1265 for (int k = 0; k < ctInfo.fExternalIOFormatCount; ++k) {
1266 const auto& ioInfo = ctInfo.fExternalIOFormats[k];
1434 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
1435 ctInfo.fColorType = GrColorType::kRGBA_8888;
1436 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag;
1440 ctInfo.fExternalIOFormatCount = 2;
1441 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
1442 ctInfo.fExternalIOFormatCount);
1446 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
1454 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
1467 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
1468 ctInfo.fColorType = GrColorType::kBGRA_8888;
1469 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag;
1473 ctInfo.fExternalIOFormatCount = 2;
1474 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
1475 ctInfo.fExternalIOFormatCount);
1479 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
1491 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
1501 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
1502 ctInfo.fColorType = GrColorType::kRGB_888x;
1503 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag;
1504 ctInfo.fReadSwizzle = GrSwizzle::RGB1();
1507 ctInfo.fExternalIOFormatCount = 1;
1508 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
1509 ctInfo.fExternalIOFormatCount);
1513 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
1562 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
1563 ctInfo.fColorType = GrColorType::kAlpha_8;
1564 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag;
1565 ctInfo.fReadSwizzle = GrSwizzle("000r");
1566 ctInfo.fWriteSwizzle = GrSwizzle("a000");
1570 ctInfo.fExternalIOFormatCount = 2;
1571 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
1572 ctInfo.fExternalIOFormatCount);
1576 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
1587 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
1597 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
1598 ctInfo.fColorType = GrColorType::kGray_8;
1599 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag;
1600 ctInfo.fReadSwizzle = GrSwizzle("rrr1");
1604 ctInfo.fExternalIOFormatCount = 2;
1605 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
1606 ctInfo.fExternalIOFormatCount);
1610 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
1621 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
1688 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
1689 ctInfo.fColorType = GrColorType::kAlpha_8;
1690 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag |
1698 ctInfo.fExternalIOFormatCount = 2;
1699 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
1700 ctInfo.fExternalIOFormatCount);
1704 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
1715 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
1772 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
1773 ctInfo.fColorType = GrColorType::kGray_8;
1774 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag;
1781 ctInfo.fExternalIOFormatCount = 2;
1782 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
1783 ctInfo.fExternalIOFormatCount);
1787 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
1796 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
1845 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
1846 ctInfo.fColorType = GrColorType::kGrayAlpha_88;
1847 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag;
1855 ctInfo.fExternalIOFormatCount = 2;
1856 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
1857 ctInfo.fExternalIOFormatCount);
1861 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
1870 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
1973 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
1974 ctInfo.fColorType = GrColorType::kBGRA_8888;
1975 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag;
1979 ctInfo.fExternalIOFormatCount = 2;
1980 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
1981 ctInfo.fExternalIOFormatCount);
1985 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
1998 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2052 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2053 ctInfo.fColorType = GrColorType::kBGR_565;
2054 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag;
2058 ctInfo.fExternalIOFormatCount = 2;
2059 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
2060 ctInfo.fExternalIOFormatCount);
2064 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2075 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2157 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2158 ctInfo.fColorType = GrColorType::kRGBA_F16;
2159 ctInfo.fFlags = flags;
2163 ctInfo.fExternalIOFormatCount = 2;
2164 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
2165 ctInfo.fExternalIOFormatCount);
2169 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2180 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2190 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2191 ctInfo.fColorType = GrColorType::kRGBA_F16_Clamped;
2192 ctInfo.fFlags = flags;
2196 ctInfo.fExternalIOFormatCount = 2;
2197 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
2198 ctInfo.fExternalIOFormatCount);
2202 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2213 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2279 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2280 ctInfo.fColorType = GrColorType::kAlpha_F16;
2281 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag;
2282 ctInfo.fReadSwizzle = GrSwizzle("000r");
2283 ctInfo.fWriteSwizzle = GrSwizzle("a000");
2287 ctInfo.fExternalIOFormatCount = 2;
2288 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
2289 ctInfo.fExternalIOFormatCount);
2293 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2304 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2362 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2363 ctInfo.fColorType = GrColorType::kAlpha_F16;
2364 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag;
2365 ctInfo.fReadSwizzle = GrSwizzle("000r");
2366 ctInfo.fWriteSwizzle = GrSwizzle("aaa0");
2374 ctInfo.fExternalIOFormatCount = 2;
2375 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
2376 ctInfo.fExternalIOFormatCount);
2380 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2389 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2437 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2438 ctInfo.fColorType = GrColorType::kRGB_888x;
2439 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag;
2443 ctInfo.fExternalIOFormatCount = 2;
2444 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
2445 ctInfo.fExternalIOFormatCount);
2449 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2458 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2502 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2503 ctInfo.fColorType = GrColorType::kRG_88;
2504 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag;
2508 ctInfo.fExternalIOFormatCount = 2;
2509 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
2510 ctInfo.fExternalIOFormatCount);
2514 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2526 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2571 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2572 ctInfo.fColorType = GrColorType::kRGBA_1010102;
2573 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag;
2577 ctInfo.fExternalIOFormatCount = 2;
2578 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
2579 ctInfo.fExternalIOFormatCount);
2583 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2594 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2604 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2605 ctInfo.fColorType = GrColorType::kBGRA_1010102;
2606 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag;
2610 ctInfo.fExternalIOFormatCount = 2;
2611 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
2612 ctInfo.fExternalIOFormatCount);
2616 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2628 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2669 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2670 ctInfo.fColorType = GrColorType::kABGR_4444;
2671 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag;
2675 ctInfo.fExternalIOFormatCount = 2;
2676 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
2677 ctInfo.fExternalIOFormatCount);
2681 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2692 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2774 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2775 ctInfo.fColorType = GrColorType::kRGBA_8888_SRGB;
2776 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag;
2780 ctInfo.fExternalIOFormatCount = 1;
2781 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
2782 ctInfo.fExternalIOFormatCount);
2800 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2958 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2959 ctInfo.fColorType = GrColorType::kAlpha_16;
2960 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag;
2961 ctInfo.fReadSwizzle = GrSwizzle("000r");
2962 ctInfo.fWriteSwizzle = GrSwizzle("a000");
2966 ctInfo.fExternalIOFormatCount = 2;
2967 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
2968 ctInfo.fExternalIOFormatCount);
2972 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
2983 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
3034 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
3035 ctInfo.fColorType = GrColorType::kRG_1616;
3036 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag;
3040 ctInfo.fExternalIOFormatCount = 2;
3041 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
3042 ctInfo.fExternalIOFormatCount);
3046 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
3057 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
3106 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
3107 ctInfo.fColorType = GrColorType::kRGBA_16161616;
3108 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag;
3112 ctInfo.fExternalIOFormatCount = 2;
3113 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
3114 ctInfo.fExternalIOFormatCount);
3118 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
3129 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
3197 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
3198 ctInfo.fColorType = GrColorType::kRG_F16;
3199 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag;
3203 ctInfo.fExternalIOFormatCount = 2;
3204 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>(
3205 ctInfo.fExternalIOFormatCount);
3209 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
3220 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++];
3247 const auto& ctInfo = formatInfo.fColorTypeInfos[j];
3248 SkASSERT(ctInfo.fColorType != GrColorType::kUnknown);
3250 SkASSERT(ctInfo.fFlags);
3252 for (int k = 0; k < ctInfo.fExternalIOFormatCount; ++k) {
3253 const auto& ioInfo = ctInfo.fExternalIOFormats[k];
4483 const ColorTypeInfo& ctInfo = formatInfo.fColorTypeInfos[i];
4485 for (int j = 0; j < ctInfo.fExternalIOFormatCount; ++j) {
4486 const auto& ioInfo = ctInfo.fExternalIOFormats[j];
4525 const ColorTypeInfo& ctInfo = formatInfo.fColorTypeInfos[i];
4527 for (int j = 0; j < ctInfo.fExternalIOFormatCount; ++j) {
4528 const auto& ioInfo = ctInfo.fExternalIOFormats[j];
4763 const auto& ctInfo = info.fColorTypeInfos[i];
4764 if (ctInfo.fColorType == colorType) {
4765 return ctInfo.fReadSwizzle;
4776 const auto& ctInfo = info.fColorTypeInfos[i];
4777 if (ctInfo.fColorType == colorType) {
4778 return ctInfo.fWriteSwizzle;