Lines Matching refs:ctInfo
1201 const auto& ctInfo = fFormatTable[i].fColorTypeInfos[j]; in onDumpJSON() local
1203 writer->appendHexU32("colorType", (uint32_t)ctInfo.fColorType); in onDumpJSON()
1204 writer->appendHexU32("flags", ctInfo.fFlags); in onDumpJSON()
1207 for (int k = 0; k < ctInfo.fExternalIOFormatCount; ++k) { in onDumpJSON()
1208 const auto& ioInfo = ctInfo.fExternalIOFormats[k]; in onDumpJSON()
1376 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
1377 ctInfo.fColorType = GrColorType::kRGBA_8888; in initFormatTable()
1378 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag; in initFormatTable()
1382 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
1383 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
1384 ctInfo.fExternalIOFormatCount); in initFormatTable()
1388 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
1396 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
1409 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
1410 ctInfo.fColorType = GrColorType::kBGRA_8888; in initFormatTable()
1411 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag; in initFormatTable()
1415 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
1416 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
1417 ctInfo.fExternalIOFormatCount); in initFormatTable()
1421 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
1433 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
1443 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
1444 ctInfo.fColorType = GrColorType::kRGB_888x; in initFormatTable()
1445 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag; in initFormatTable()
1446 ctInfo.fReadSwizzle = GrSwizzle::RGB1(); in initFormatTable()
1449 ctInfo.fExternalIOFormatCount = 1; in initFormatTable()
1450 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
1451 ctInfo.fExternalIOFormatCount); in initFormatTable()
1455 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
1502 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
1503 ctInfo.fColorType = GrColorType::kAlpha_8; in initFormatTable()
1504 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag; in initFormatTable()
1505 ctInfo.fReadSwizzle = GrSwizzle("000r"); in initFormatTable()
1506 ctInfo.fWriteSwizzle = GrSwizzle("a000"); in initFormatTable()
1510 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
1511 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
1512 ctInfo.fExternalIOFormatCount); in initFormatTable()
1516 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
1527 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
1537 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
1538 ctInfo.fColorType = GrColorType::kGray_8; in initFormatTable()
1539 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag; in initFormatTable()
1540 ctInfo.fReadSwizzle = GrSwizzle("rrr1"); in initFormatTable()
1544 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
1545 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
1546 ctInfo.fExternalIOFormatCount); in initFormatTable()
1550 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
1561 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
1628 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
1629 ctInfo.fColorType = GrColorType::kAlpha_8; in initFormatTable()
1630 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | in initFormatTable()
1638 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
1639 … ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
1640 ctInfo.fExternalIOFormatCount); in initFormatTable()
1644 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
1655 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
1712 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
1713 ctInfo.fColorType = GrColorType::kGray_8; in initFormatTable()
1714 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag; in initFormatTable()
1721 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
1722 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
1723 ctInfo.fExternalIOFormatCount); in initFormatTable()
1727 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
1736 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
1785 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
1786 ctInfo.fColorType = GrColorType::kGrayAlpha_88; in initFormatTable()
1787 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag; in initFormatTable()
1795 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
1796 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
1797 ctInfo.fExternalIOFormatCount); in initFormatTable()
1801 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
1810 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
1909 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
1910 ctInfo.fColorType = GrColorType::kBGRA_8888; in initFormatTable()
1911 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag; in initFormatTable()
1915 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
1916 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
1917 ctInfo.fExternalIOFormatCount); in initFormatTable()
1921 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
1934 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
1982 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
1983 ctInfo.fColorType = GrColorType::kBGR_565; in initFormatTable()
1984 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag; in initFormatTable()
1988 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
1989 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
1990 ctInfo.fExternalIOFormatCount); in initFormatTable()
1994 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2005 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2087 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
2088 ctInfo.fColorType = GrColorType::kRGBA_F16; in initFormatTable()
2089 ctInfo.fFlags = flags; in initFormatTable()
2093 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
2094 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
2095 ctInfo.fExternalIOFormatCount); in initFormatTable()
2099 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2110 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2120 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
2121 ctInfo.fColorType = GrColorType::kRGBA_F16_Clamped; in initFormatTable()
2122 ctInfo.fFlags = flags; in initFormatTable()
2126 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
2127 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
2128 ctInfo.fExternalIOFormatCount); in initFormatTable()
2132 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2143 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2209 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
2210 ctInfo.fColorType = GrColorType::kAlpha_F16; in initFormatTable()
2211 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag; in initFormatTable()
2212 ctInfo.fReadSwizzle = GrSwizzle("000r"); in initFormatTable()
2213 ctInfo.fWriteSwizzle = GrSwizzle("a000"); in initFormatTable()
2217 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
2218 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
2219 ctInfo.fExternalIOFormatCount); in initFormatTable()
2223 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2234 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2292 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
2293 ctInfo.fColorType = GrColorType::kAlpha_F16; in initFormatTable()
2294 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag; in initFormatTable()
2295 ctInfo.fReadSwizzle = GrSwizzle("000r"); in initFormatTable()
2296 ctInfo.fWriteSwizzle = GrSwizzle("aaa0"); in initFormatTable()
2304 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
2305 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
2306 ctInfo.fExternalIOFormatCount); in initFormatTable()
2310 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2319 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2367 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
2368 ctInfo.fColorType = GrColorType::kRGB_888x; in initFormatTable()
2369 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag; in initFormatTable()
2373 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
2374 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
2375 ctInfo.fExternalIOFormatCount); in initFormatTable()
2379 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2388 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2430 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
2431 ctInfo.fColorType = GrColorType::kRG_88; in initFormatTable()
2432 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag; in initFormatTable()
2436 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
2437 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
2438 ctInfo.fExternalIOFormatCount); in initFormatTable()
2442 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2454 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2497 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
2498 ctInfo.fColorType = GrColorType::kRGBA_1010102; in initFormatTable()
2499 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag; in initFormatTable()
2503 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
2504 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
2505 ctInfo.fExternalIOFormatCount); in initFormatTable()
2509 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2520 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2530 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
2531 ctInfo.fColorType = GrColorType::kBGRA_1010102; in initFormatTable()
2532 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag; in initFormatTable()
2536 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
2537 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
2538 ctInfo.fExternalIOFormatCount); in initFormatTable()
2542 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2554 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2595 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
2596 ctInfo.fColorType = GrColorType::kABGR_4444; in initFormatTable()
2597 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag; in initFormatTable()
2601 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
2602 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
2603 ctInfo.fExternalIOFormatCount); in initFormatTable()
2607 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2618 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2700 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
2701 ctInfo.fColorType = GrColorType::kRGBA_8888_SRGB; in initFormatTable()
2702 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag; in initFormatTable()
2706 ctInfo.fExternalIOFormatCount = 1; in initFormatTable()
2707 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
2708 ctInfo.fExternalIOFormatCount); in initFormatTable()
2726 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2830 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
2831 ctInfo.fColorType = GrColorType::kAlpha_16; in initFormatTable()
2832 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag; in initFormatTable()
2833 ctInfo.fReadSwizzle = GrSwizzle("000r"); in initFormatTable()
2834 ctInfo.fWriteSwizzle = GrSwizzle("a000"); in initFormatTable()
2838 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
2839 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
2840 ctInfo.fExternalIOFormatCount); in initFormatTable()
2844 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2855 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2900 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
2901 ctInfo.fColorType = GrColorType::kRG_1616; in initFormatTable()
2902 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag; in initFormatTable()
2906 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
2907 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
2908 ctInfo.fExternalIOFormatCount); in initFormatTable()
2912 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2923 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2967 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
2968 ctInfo.fColorType = GrColorType::kRGBA_16161616; in initFormatTable()
2969 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag; in initFormatTable()
2973 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
2974 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
2975 ctInfo.fExternalIOFormatCount); in initFormatTable()
2979 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
2990 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
3058 auto& ctInfo = info.fColorTypeInfos[ctIdx++]; in initFormatTable() local
3059 ctInfo.fColorType = GrColorType::kRG_F16; in initFormatTable()
3060 ctInfo.fFlags = ColorTypeInfo::kUploadData_Flag | ColorTypeInfo::kRenderable_Flag; in initFormatTable()
3064 ctInfo.fExternalIOFormatCount = 2; in initFormatTable()
3065 ctInfo.fExternalIOFormats = std::make_unique<ColorTypeInfo::ExternalIOFormats[]>( in initFormatTable()
3066 ctInfo.fExternalIOFormatCount); in initFormatTable()
3070 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
3081 auto& ioFormat = ctInfo.fExternalIOFormats[ioIdx++]; in initFormatTable()
3108 const auto& ctInfo = formatInfo.fColorTypeInfos[j]; in initFormatTable() local
3109 SkASSERT(ctInfo.fColorType != GrColorType::kUnknown); in initFormatTable()
3111 SkASSERT(ctInfo.fFlags); in initFormatTable()
3113 for (int k = 0; k < ctInfo.fExternalIOFormatCount; ++k) { in initFormatTable()
3114 const auto& ioInfo = ctInfo.fExternalIOFormats[k]; in initFormatTable()
4219 const ColorTypeInfo& ctInfo = formatInfo.fColorTypeInfos[i]; in onSupportedReadPixelsColorType() local
4221 for (int j = 0; j < ctInfo.fExternalIOFormatCount; ++j) { in onSupportedReadPixelsColorType()
4222 const auto& ioInfo = ctInfo.fExternalIOFormats[j]; in onSupportedReadPixelsColorType()
4254 const ColorTypeInfo& ctInfo = formatInfo.fColorTypeInfos[i]; in supportedWritePixelsColorType() local
4256 for (int j = 0; j < ctInfo.fExternalIOFormatCount; ++j) { in supportedWritePixelsColorType()
4257 const auto& ioInfo = ctInfo.fExternalIOFormats[j]; in supportedWritePixelsColorType()
4475 const auto& ctInfo = info.fColorTypeInfos[i]; in onGetReadSwizzle() local
4476 if (ctInfo.fColorType == colorType) { in onGetReadSwizzle()
4477 return ctInfo.fReadSwizzle; in onGetReadSwizzle()
4488 const auto& ctInfo = info.fColorTypeInfos[i]; in getWriteSwizzle() local
4489 if (ctInfo.fColorType == colorType) { in getWriteSwizzle()
4490 return ctInfo.fWriteSwizzle; in getWriteSwizzle()