Lines Matching defs:info

81     // that we strip the ANGLE info and for the rest of caps setup pretend we're directly on top of
846 // We're on a desktop GL that doesn't have precision info. Assume they're all 32bit float.
1290 const auto& info = this->getFormatInfo(surfaceFormat);
1291 *externalType = info.fDefaultExternalType;
1292 *externalFormat = info.fDefaultExternalFormat;
1299 const auto& info = this->getFormatInfo(format);
1300 *externalType = info.fDefaultExternalType;
1301 *externalFormat = info.fDefaultExternalFormat;
1302 *colorType = info.fDefaultColorType;
1401 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGBA8);
1402 info.fFormatType = FormatType::kNormalizedFixedPoint;
1403 info.fInternalFormatForRenderbuffer = GR_GL_RGBA8;
1404 info.fDefaultExternalFormat = GR_GL_RGBA;
1405 info.fDefaultExternalType = GR_GL_UNSIGNED_BYTE;
1406 info.fDefaultColorType = GrColorType::kRGBA_8888;
1407 info.fFlags = FormatInfo::kTexturable_Flag | FormatInfo::kTransfers_Flag;
1409 info.fFlags |= msaaRenderFlags;
1413 info.fFlags |= msaaRenderFlags;
1416 info.fFlags |= msaaRenderFlags;
1420 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
1421 info.fInternalFormatForTexImageOrStorage = GR_GL_RGBA8;
1423 info.fInternalFormatForTexImageOrStorage =
1429 info.fColorTypeInfoCount = supportsBGRAColorType ? 3 : 2;
1430 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
1434 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
1467 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
1501 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
1524 FormatInfo& info = this->getFormatInfo(GrGLFormat::kR8);
1525 info.fFormatType = FormatType::kNormalizedFixedPoint;
1526 info.fInternalFormatForRenderbuffer = GR_GL_R8;
1527 info.fDefaultExternalFormat = GR_GL_RED;
1528 info.fDefaultExternalType = GR_GL_UNSIGNED_BYTE;
1529 info.fDefaultColorType = GrColorType::kR_8;
1543 info.fFlags |= FormatInfo::kTexturable_Flag
1549 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
1550 info.fInternalFormatForTexImageOrStorage = GR_GL_R8;
1552 info.fInternalFormatForTexImageOrStorage =
1557 info.fColorTypeInfoCount = 2;
1558 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
1562 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
1597 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
1638 FormatInfo& info = this->getFormatInfo(GrGLFormat::kALPHA8);
1639 info.fFormatType = FormatType::kNormalizedFixedPoint;
1655 info.fInternalFormatForRenderbuffer = GR_GL_ALPHA8;
1656 info.fDefaultExternalFormat = GR_GL_ALPHA;
1657 info.fDefaultExternalType = GR_GL_UNSIGNED_BYTE;
1658 info.fDefaultColorType = GrColorType::kAlpha_8;
1660 info.fFlags = FormatInfo::kTexturable_Flag | FormatInfo::kTransfers_Flag;
1665 info.fFlags |= msaaRenderFlags;
1668 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
1669 info.fInternalFormatForTexImageOrStorage = GR_GL_ALPHA8;
1675 info.fInternalFormatForTexImageOrStorage = GR_GL_ALPHA8;
1677 info.fInternalFormatForTexImageOrStorage = GR_GL_ALPHA;
1682 info.fColorTypeInfoCount = 1;
1683 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
1688 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
1728 FormatInfo& info = this->getFormatInfo(GrGLFormat::kLUMINANCE8);
1729 info.fFormatType = FormatType::kNormalizedFixedPoint;
1730 info.fInternalFormatForRenderbuffer = GR_GL_LUMINANCE8;
1731 info.fDefaultExternalFormat = GR_GL_LUMINANCE;
1732 info.fDefaultExternalType = GR_GL_UNSIGNED_BYTE;
1733 info.fDefaultColorType = GrColorType::kGray_8;
1747 info.fFlags = FormatInfo::kTexturable_Flag | FormatInfo::kTransfers_Flag;
1750 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
1751 info.fInternalFormatForTexImageOrStorage = GR_GL_LUMINANCE8;
1753 info.fInternalFormatForTexImageOrStorage = GR_GL_LUMINANCE8;
1755 info.fInternalFormatForTexImageOrStorage = GR_GL_LUMINANCE;
1767 info.fColorTypeInfoCount = 1;
1768 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
1772 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
1808 FormatInfo& info = this->getFormatInfo(GrGLFormat::kLUMINANCE8_ALPHA8);
1809 info.fFormatType = FormatType::kNormalizedFixedPoint;
1810 info.fInternalFormatForRenderbuffer = GR_GL_LUMINANCE8_ALPHA8;
1811 info.fDefaultExternalFormat = GR_GL_LUMINANCE_ALPHA;
1812 info.fDefaultExternalType = GR_GL_UNSIGNED_BYTE;
1813 info.fDefaultColorType = GrColorType::kGrayAlpha_88;
1827 info.fFlags = FormatInfo::kTexturable_Flag | FormatInfo::kTransfers_Flag;
1830 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
1831 info.fInternalFormatForTexImageOrStorage = GR_GL_LUMINANCE8_ALPHA8;
1833 info.fInternalFormatForTexImageOrStorage = GR_GL_LUMINANCE8_ALPHA8;
1835 info.fInternalFormatForTexImageOrStorage = GR_GL_LUMINANCE_ALPHA;
1840 info.fColorTypeInfoCount = 1;
1841 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
1845 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
1881 FormatInfo& info = this->getFormatInfo(GrGLFormat::kBGRA8);
1882 info.fFormatType = FormatType::kNormalizedFixedPoint;
1900 info.fInternalFormatForRenderbuffer = GR_GL_RGBA8;
1902 info.fDefaultExternalFormat = GR_GL_BGRA;
1903 info.fDefaultExternalType = GR_GL_UNSIGNED_BYTE;
1904 info.fDefaultColorType = GrColorType::kBGRA_8888;
1931 info.fFlags = FormatInfo::kTexturable_Flag
1953 info.fFlags = FormatInfo::kTexturable_Flag
1961 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
1962 info.fInternalFormatForTexImageOrStorage = GR_GL_BGRA8;
1964 info.fInternalFormatForTexImageOrStorage = bgraTexImageFormat;
1967 if (SkToBool(info.fFlags & FormatInfo::kTexturable_Flag)) {
1968 info.fColorTypeInfoCount = 1;
1969 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
1973 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2010 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGB565);
2011 info.fFormatType = FormatType::kNormalizedFixedPoint;
2012 info.fInternalFormatForRenderbuffer = GR_GL_RGB565;
2013 info.fDefaultExternalFormat = GR_GL_RGB;
2014 info.fDefaultExternalType = GR_GL_UNSIGNED_SHORT_5_6_5;
2015 info.fDefaultColorType = GrColorType::kBGR_565;
2018 info.fFlags = FormatInfo::kTexturable_Flag
2023 info.fFlags = FormatInfo::kTexturable_Flag
2027 info.fFlags = FormatInfo::kTexturable_Flag
2039 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
2040 info.fInternalFormatForTexImageOrStorage = GR_GL_RGB565;
2042 info.fInternalFormatForTexImageOrStorage =
2046 if (SkToBool(info.fFlags &FormatInfo::kTexturable_Flag)) {
2047 info.fColorTypeInfoCount = 1;
2048 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
2052 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2087 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGBA16F);
2088 info.fFormatType = FormatType::kFloat;
2089 info.fInternalFormatForRenderbuffer = GR_GL_RGBA16F;
2090 info.fDefaultExternalFormat = GR_GL_RGBA;
2091 info.fDefaultExternalType = halfFloatType;
2092 info.fDefaultColorType = GrColorType::kRGBA_F16;
2136 info.fFlags = FormatInfo::kTexturable_Flag | FormatInfo::kTransfers_Flag;
2138 info.fFlags |= fpRenderFlags;
2142 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
2143 info.fInternalFormatForTexImageOrStorage = GR_GL_RGBA16F;
2145 info.fInternalFormatForTexImageOrStorage =
2152 info.fColorTypeInfoCount = 2;
2153 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
2157 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2190 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2225 FormatInfo& info = this->getFormatInfo(GrGLFormat::kR16F);
2226 info.fFormatType = FormatType::kFloat;
2227 info.fInternalFormatForRenderbuffer = GR_GL_R16F;
2228 info.fDefaultExternalFormat = GR_GL_RED;
2229 info.fDefaultExternalType = halfFloatType;
2230 info.fDefaultColorType = GrColorType::kR_F16;
2260 info.fFlags = FormatInfo::kTexturable_Flag | FormatInfo::kTransfers_Flag;
2262 info.fFlags |= fpRenderFlags;
2266 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
2267 info.fInternalFormatForTexImageOrStorage = GR_GL_R16F;
2269 info.fInternalFormatForTexImageOrStorage =
2275 info.fColorTypeInfoCount = 1;
2276 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
2279 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2338 FormatInfo& info = this->getFormatInfo(GrGLFormat::kLUMINANCE16F);
2339 info.fFormatType = FormatType::kFloat;
2340 info.fInternalFormatForRenderbuffer = GR_GL_LUMINANCE16F;
2341 info.fDefaultExternalFormat = GR_GL_LUMINANCE;
2342 info.fDefaultExternalType = halfFloatType;
2343 info.fDefaultColorType = GrColorType::kGray_F16;
2346 info.fFlags = FormatInfo::kTexturable_Flag | FormatInfo::kTransfers_Flag;
2349 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
2350 info.fInternalFormatForTexImageOrStorage = GR_GL_LUMINANCE16F;
2352 info.fInternalFormatForTexImageOrStorage = GR_GL_LUMINANCE16F;
2354 info.fInternalFormatForTexImageOrStorage = GR_GL_LUMINANCE;
2357 info.fColorTypeInfoCount = 1;
2358 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
2362 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2401 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGB8);
2402 info.fFormatType = FormatType::kNormalizedFixedPoint;
2403 info.fInternalFormatForRenderbuffer = GR_GL_RGB8;
2404 info.fDefaultExternalFormat = GR_GL_RGB;
2405 info.fDefaultExternalType = GR_GL_UNSIGNED_BYTE;
2406 info.fDefaultColorType = GrColorType::kRGB_888;
2407 info.fFlags = FormatInfo::kTexturable_Flag | FormatInfo::kTransfers_Flag;
2414 info.fFlags |= nonMSAARenderFlags;
2418 info.fFlags |= msaaRenderFlags;
2422 info.fFlags |= msaaRenderFlags;
2425 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
2426 info.fInternalFormatForTexImageOrStorage = GR_GL_RGB8;
2428 info.fInternalFormatForTexImageOrStorage =
2432 info.fColorTypeInfoCount = 1;
2433 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
2437 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2469 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRG8);
2470 info.fFormatType = FormatType::kNormalizedFixedPoint;
2471 info.fInternalFormatForRenderbuffer = GR_GL_RG8;
2472 info.fDefaultExternalFormat = GR_GL_RG;
2473 info.fDefaultExternalType = GR_GL_UNSIGNED_BYTE;
2474 info.fDefaultColorType = GrColorType::kRG_88;
2484 info.fFlags |= FormatInfo::kTexturable_Flag
2488 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
2489 info.fInternalFormatForTexImageOrStorage = GR_GL_RG8;
2492 if (!(info.fFlags & FormatInfo::kUseTexStorage_Flag)) {
2493 info.fInternalFormatForTexImageOrStorage =
2497 info.fColorTypeInfoCount = 1;
2498 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
2502 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2538 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGB10_A2);
2539 info.fFormatType = FormatType::kNormalizedFixedPoint;
2540 info.fInternalFormatForRenderbuffer = GR_GL_RGB10_A2;
2541 info.fDefaultExternalFormat = GR_GL_RGBA;
2542 info.fDefaultExternalType = GR_GL_UNSIGNED_INT_2_10_10_10_REV;
2543 info.fDefaultColorType = GrColorType::kRGBA_1010102;
2546 info.fFlags = FormatInfo::kTexturable_Flag
2551 info.fFlags = FormatInfo::kTexturable_Flag | FormatInfo::kTransfers_Flag;
2555 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
2556 info.fInternalFormatForTexImageOrStorage = GR_GL_RGB10_A2;
2558 info.fInternalFormatForTexImageOrStorage =
2562 if (SkToBool(info.fFlags & FormatInfo::kTexturable_Flag)) {
2566 info.fColorTypeInfoCount = supportsBGRAColorType ? 2 : 1;
2567 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
2571 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2604 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2640 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGBA4);
2641 info.fFormatType = FormatType::kNormalizedFixedPoint;
2642 info.fInternalFormatForRenderbuffer = GR_GL_RGBA4;
2643 info.fDefaultExternalFormat = GR_GL_RGBA;
2644 info.fDefaultExternalType = GR_GL_UNSIGNED_SHORT_4_4_4_4;
2645 info.fDefaultColorType = GrColorType::kABGR_4444;
2646 info.fFlags = FormatInfo::kTexturable_Flag | FormatInfo::kTransfers_Flag;
2649 info.fFlags |= msaaRenderFlags;
2652 info.fFlags |= msaaRenderFlags;
2654 info.fFlags |= msaaRenderFlags;
2657 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
2658 info.fInternalFormatForTexImageOrStorage = GR_GL_RGBA4;
2660 info.fInternalFormatForTexImageOrStorage =
2664 info.fColorTypeInfoCount = 1;
2665 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
2669 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2703 FormatInfo& info = this->getFormatInfo(GrGLFormat::kSRGB8_ALPHA8);
2704 info.fFormatType = FormatType::kNormalizedFixedPoint;
2705 info.fInternalFormatForRenderbuffer = GR_GL_SRGB8_ALPHA8;
2706 info.fDefaultExternalType = GR_GL_UNSIGNED_BYTE;
2707 info.fDefaultColorType = GrColorType::kRGBA_8888_SRGB;
2710 info.fDefaultExternalFormat = GR_GL_RGBA;
2732 info.fDefaultExternalFormat = GR_GL_SRGB_ALPHA;
2746 info.fDefaultExternalFormat = GR_GL_SRGB_ALPHA;
2753 info.fFlags = FormatInfo::kTexturable_Flag | FormatInfo::kTransfers_Flag;
2755 info.fFlags |= formatWorkarounds.fDisableSRGBRenderWithMSAAForMacAMD
2761 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
2762 info.fInternalFormatForTexImageOrStorage = GR_GL_SRGB8_ALPHA8;
2764 info.fInternalFormatForTexImageOrStorage =
2769 info.fColorTypeInfoCount = 1;
2770 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
2774 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2812 FormatInfo& info = this->getFormatInfo(GrGLFormat::kCOMPRESSED_RGB8_BC1);
2813 info.fFormatType = FormatType::kNormalizedFixedPoint;
2814 info.fInternalFormatForTexImageOrStorage = GR_GL_COMPRESSED_RGB_S3TC_DXT1_EXT;
2817 info.fFlags = FormatInfo::kTexturable_Flag;
2826 FormatInfo& info = this->getFormatInfo(GrGLFormat::kCOMPRESSED_RGBA8_BC1);
2827 info.fFormatType = FormatType::kNormalizedFixedPoint;
2828 info.fInternalFormatForTexImageOrStorage = GR_GL_COMPRESSED_RGBA_S3TC_DXT1_EXT;
2831 info.fFlags = FormatInfo::kTexturable_Flag;
2840 FormatInfo& info = this->getFormatInfo(GrGLFormat::kCOMPRESSED_RGB8_ETC2);
2841 info.fFormatType = FormatType::kNormalizedFixedPoint;
2842 info.fInternalFormatForTexImageOrStorage = GR_GL_COMPRESSED_RGB8_ETC2;
2847 info.fFlags = FormatInfo::kTexturable_Flag;
2852 info.fFlags = FormatInfo::kTexturable_Flag;
2862 FormatInfo& info = this->getFormatInfo(GrGLFormat::kCOMPRESSED_ETC1_RGB8);
2863 info.fFormatType = FormatType::kNormalizedFixedPoint;
2864 info.fInternalFormatForTexImageOrStorage = GR_GL_COMPRESSED_ETC1_RGB8;
2867 info.fFlags = FormatInfo::kTexturable_Flag;
2876 FormatInfo& info = this->getFormatInfo(GrGLFormat::kCOMPRESSED_ASTC_RGBA8_4x4);
2877 info.fFormatType = FormatType::kNormalizedFixedPoint;
2878 info.fDefaultExternalFormat = GR_GL_RGB;
2879 info.fInternalFormatForTexImageOrStorage = GR_GL_COMPRESSED_RGBA_ASTC_4x4;
2882 info.fFlags = FormatInfo::kTexturable_Flag;
2891 FormatInfo& info = this->getFormatInfo(GrGLFormat::kCOMPRESSED_ASTC_RGBA8_6x6);
2892 info.fFormatType = FormatType::kNormalizedFixedPoint;
2893 info.fDefaultExternalFormat = GR_GL_RGB;
2894 info.fInternalFormatForTexImageOrStorage = GR_GL_COMPRESSED_RGBA_ASTC_6x6;
2897 info.fFlags = FormatInfo::kTexturable_Flag;
2906 FormatInfo& info = this->getFormatInfo(GrGLFormat::kCOMPRESSED_ASTC_RGBA8_8x8);
2907 info.fFormatType = FormatType::kNormalizedFixedPoint;
2908 info.fDefaultExternalFormat = GR_GL_RGB;
2909 info.fInternalFormatForTexImageOrStorage = GR_GL_COMPRESSED_RGBA_ASTC_8x8;
2912 info.fFlags = FormatInfo::kTexturable_Flag;
2921 FormatInfo& info = this->getFormatInfo(GrGLFormat::kR16);
2922 info.fFormatType = FormatType::kNormalizedFixedPoint;
2923 info.fInternalFormatForRenderbuffer = GR_GL_R16;
2924 info.fDefaultExternalFormat = GR_GL_RED;
2925 info.fDefaultExternalType = GR_GL_UNSIGNED_SHORT;
2926 info.fDefaultColorType = GrColorType::kR_16;
2938 info.fFlags = FormatInfo::kTexturable_Flag | msaaRenderFlags;
2940 info.fFlags |= FormatInfo::kTransfers_Flag;
2945 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
2946 info.fInternalFormatForTexImageOrStorage = GR_GL_R16;
2948 info.fInternalFormatForTexImageOrStorage =
2953 info.fColorTypeInfoCount = 1;
2954 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
2958 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
2995 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRG16);
2996 info.fFormatType = FormatType::kNormalizedFixedPoint;
2997 info.fInternalFormatForTexImageOrStorage =
2999 info.fInternalFormatForRenderbuffer = GR_GL_RG16;
3000 info.fDefaultExternalFormat = GR_GL_RG;
3001 info.fDefaultExternalType = GR_GL_UNSIGNED_SHORT;
3002 info.fDefaultColorType = GrColorType::kRG_1616;
3014 info.fFlags = FormatInfo::kTexturable_Flag | msaaRenderFlags;
3016 info.fFlags |= FormatInfo::kTransfers_Flag;
3021 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
3022 info.fInternalFormatForTexImageOrStorage = GR_GL_RG16;
3024 info.fInternalFormatForTexImageOrStorage =
3029 info.fColorTypeInfoCount = 1;
3030 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
3034 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
3078 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGBA16);
3079 info.fFormatType = FormatType::kNormalizedFixedPoint;
3081 info.fInternalFormatForRenderbuffer = GR_GL_RGBA16;
3082 info.fDefaultExternalFormat = GR_GL_RGBA;
3083 info.fDefaultExternalType = GR_GL_UNSIGNED_SHORT;
3084 info.fDefaultColorType = GrColorType::kRGBA_16161616;
3086 info.fFlags = FormatInfo::kTexturable_Flag | msaaRenderFlags;
3088 info.fFlags |= FormatInfo::kTransfers_Flag;
3093 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
3094 info.fInternalFormatForTexImageOrStorage = GR_GL_RGBA16;
3096 info.fInternalFormatForTexImageOrStorage =
3102 info.fColorTypeInfoCount = 1;
3103 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
3106 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
3170 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRG16F);
3171 info.fFormatType = FormatType::kFloat;
3172 info.fInternalFormatForRenderbuffer = GR_GL_RG16F;
3173 info.fDefaultExternalFormat = GR_GL_RG;
3174 info.fDefaultExternalType = halfFloatType;
3175 info.fDefaultColorType = GrColorType::kRG_F16;
3177 info.fFlags |= FormatInfo::kTexturable_Flag | FormatInfo::kTransfers_Flag;
3179 info.fFlags |= fpRenderFlags;
3184 info.fFlags |= FormatInfo::kUseTexStorage_Flag;
3185 info.fInternalFormatForTexImageOrStorage = GR_GL_RG16F;
3187 info.fInternalFormatForTexImageOrStorage =
3192 info.fColorTypeInfoCount = 1;
3193 info.fColorTypeInfos = std::make_unique<ColorTypeInfo[]>(info.fColorTypeInfoCount);
3197 auto& ctInfo = info.fColorTypeInfos[ctIdx++];
4564 const FormatInfo& info = this->getFormatInfo(format);
4565 return SkToBool(info.fFlags & FormatInfo::kTexturable_Flag);
4577 const FormatInfo& info = this->getFormatInfo(f);
4578 if (!SkToBool(info.colorTypeFlags(ct) & ColorTypeInfo::kRenderable_Flag)) {
4596 const FormatInfo& info = this->getFormatInfo(format);
4598 int count = info.fColorSampleCounts.count();
4605 return info.fColorSampleCounts[0] == 1 ? 1 : 0;
4608 for (int sampleCount : info.fColorSampleCounts) {
4620 const FormatInfo& info = this->getFormatInfo(format);
4621 const auto& table = info.fColorSampleCounts;
4693 const auto& info = this->getFormatInfo(glFormat);
4694 for (int i = 0; i < info.fColorTypeInfoCount; ++i) {
4695 if (info.fColorTypeInfos[i].fColorType == ct) {
4761 const auto& info = this->getFormatInfo(glFormat);
4762 for (int i = 0; i < info.fColorTypeInfoCount; ++i) {
4763 const auto& ctInfo = info.fColorTypeInfos[i];
4774 const auto& info = this->getFormatInfo(format.asGLFormat());
4775 for (int i = 0; i < info.fColorTypeInfoCount; ++i) {
4776 const auto& ctInfo = info.fColorTypeInfos[i];