Lines Matching refs:GrGLFormat
1120 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX8; in initStencilSupport()
1121 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX16; in initStencilSupport()
1123 fStencilFormats.push_back() = GrGLFormat::kDEPTH24_STENCIL8; in initStencilSupport()
1129 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX8; in initStencilSupport()
1132 fStencilFormats.push_back() = GrGLFormat::kDEPTH24_STENCIL8; in initStencilSupport()
1135 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX8; in initStencilSupport()
1137 fStencilFormats.push_back() = GrGLFormat::kDEPTH24_STENCIL8; in initStencilSupport()
1288 void GrGLCaps::getTexImageExternalFormatAndType(GrGLFormat surfaceFormat, GrGLenum* externalFormat, in getTexImageExternalFormatAndType()
1295 void GrGLCaps::getTexSubImageDefaultFormatTypeAndColorType(GrGLFormat format, in getTexSubImageDefaultFormatTypeAndColorType()
1305 void GrGLCaps::getTexSubImageExternalFormatAndType(GrGLFormat surfaceFormat, in getTexSubImageExternalFormatAndType()
1314 void GrGLCaps::getReadPixelsFormat(GrGLFormat surfaceFormat, GrColorType surfaceColorType, in getReadPixelsFormat()
1321 void GrGLCaps::getExternalFormat(GrGLFormat surfaceFormat, GrColorType surfaceColorType, in getExternalFormat()
1331 void GrGLCaps::setStencilFormatIndexForFormat(GrGLFormat format, int index) { in setStencilFormatIndexForFormat()
1337 void GrGLCaps::setColorTypeFormat(GrColorType colorType, GrGLFormat format) { in setColorTypeFormat()
1339 SkASSERT(fColorTypeToFormatTable[idx] == GrGLFormat::kUnknown); in setColorTypeFormat()
1388 fColorTypeToFormatTable[i] = GrGLFormat::kUnknown; in initFormatTable()
1401 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGBA8); in initFormatTable()
1437 this->setColorTypeFormat(GrColorType::kRGBA_8888, GrGLFormat::kRGBA8); in initFormatTable()
1470 this->setColorTypeFormat(GrColorType::kBGRA_8888, GrGLFormat::kRGBA8); in initFormatTable()
1524 FormatInfo& info = this->getFormatInfo(GrGLFormat::kR8); in initFormatTable()
1567 this->setColorTypeFormat(GrColorType::kAlpha_8, GrGLFormat::kR8); in initFormatTable()
1601 this->setColorTypeFormat(GrColorType::kGray_8, GrGLFormat::kR8); in initFormatTable()
1638 FormatInfo& info = this->getFormatInfo(GrGLFormat::kALPHA8); in initFormatTable()
1693 if (fColorTypeToFormatTable[idx] == GrGLFormat::kUnknown) { in initFormatTable()
1694 this->setColorTypeFormat(GrColorType::kAlpha_8, GrGLFormat::kALPHA8); in initFormatTable()
1728 FormatInfo& info = this->getFormatInfo(GrGLFormat::kLUMINANCE8); in initFormatTable()
1776 if (fColorTypeToFormatTable[idx] == GrGLFormat::kUnknown) { in initFormatTable()
1777 this->setColorTypeFormat(GrColorType::kGray_8, GrGLFormat::kLUMINANCE8); in initFormatTable()
1808 FormatInfo& info = this->getFormatInfo(GrGLFormat::kLUMINANCE8_ALPHA8); in initFormatTable()
1849 if (fColorTypeToFormatTable[idx] == GrGLFormat::kUnknown) { in initFormatTable()
1851 GrGLFormat::kLUMINANCE8_ALPHA8); in initFormatTable()
1881 FormatInfo& info = this->getFormatInfo(GrGLFormat::kBGRA8); in initFormatTable()
1976 this->setColorTypeFormat(GrColorType::kBGRA_8888, GrGLFormat::kBGRA8); in initFormatTable()
2010 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGB565); in initFormatTable()
2055 this->setColorTypeFormat(GrColorType::kBGR_565, GrGLFormat::kRGB565); in initFormatTable()
2087 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGBA16F); in initFormatTable()
2160 this->setColorTypeFormat(GrColorType::kRGBA_F16, GrGLFormat::kRGBA16F); in initFormatTable()
2193 this->setColorTypeFormat(GrColorType::kRGBA_F16_Clamped, GrGLFormat::kRGBA16F); in initFormatTable()
2225 FormatInfo& info = this->getFormatInfo(GrGLFormat::kR16F); in initFormatTable()
2284 this->setColorTypeFormat(GrColorType::kAlpha_F16, GrGLFormat::kR16F); in initFormatTable()
2338 FormatInfo& info = this->getFormatInfo(GrGLFormat::kLUMINANCE16F); in initFormatTable()
2369 if (fColorTypeToFormatTable[idx] == GrGLFormat::kUnknown) { in initFormatTable()
2370 this->setColorTypeFormat(GrColorType::kAlpha_F16, GrGLFormat::kLUMINANCE16F); in initFormatTable()
2401 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGB8); in initFormatTable()
2440 this->setColorTypeFormat(GrColorType::kRGB_888x, GrGLFormat::kRGB8); in initFormatTable()
2469 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRG8); in initFormatTable()
2505 this->setColorTypeFormat(GrColorType::kRG_88, GrGLFormat::kRG8); in initFormatTable()
2538 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGB10_A2); in initFormatTable()
2574 this->setColorTypeFormat(GrColorType::kRGBA_1010102, GrGLFormat::kRGB10_A2); in initFormatTable()
2607 this->setColorTypeFormat(GrColorType::kBGRA_1010102, GrGLFormat::kRGB10_A2); in initFormatTable()
2640 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGBA4); in initFormatTable()
2672 this->setColorTypeFormat(GrColorType::kABGR_4444, GrGLFormat::kRGBA4); in initFormatTable()
2703 FormatInfo& info = this->getFormatInfo(GrGLFormat::kSRGB8_ALPHA8); in initFormatTable()
2777 this->setColorTypeFormat(GrColorType::kRGBA_8888_SRGB, GrGLFormat::kSRGB8_ALPHA8); in initFormatTable()
2812 FormatInfo& info = this->getFormatInfo(GrGLFormat::kCOMPRESSED_RGB8_BC1); in initFormatTable()
2826 FormatInfo& info = this->getFormatInfo(GrGLFormat::kCOMPRESSED_RGBA8_BC1); in initFormatTable()
2840 FormatInfo& info = this->getFormatInfo(GrGLFormat::kCOMPRESSED_RGB8_ETC2); in initFormatTable()
2862 FormatInfo& info = this->getFormatInfo(GrGLFormat::kCOMPRESSED_ETC1_RGB8); in initFormatTable()
2876 FormatInfo& info = this->getFormatInfo(GrGLFormat::kCOMPRESSED_ASTC_RGBA8_4x4); in initFormatTable()
2891 FormatInfo& info = this->getFormatInfo(GrGLFormat::kCOMPRESSED_ASTC_RGBA8_6x6); in initFormatTable()
2906 FormatInfo& info = this->getFormatInfo(GrGLFormat::kCOMPRESSED_ASTC_RGBA8_8x8); in initFormatTable()
2921 FormatInfo& info = this->getFormatInfo(GrGLFormat::kR16); in initFormatTable()
2963 this->setColorTypeFormat(GrColorType::kAlpha_16, GrGLFormat::kR16); in initFormatTable()
2995 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRG16); in initFormatTable()
3037 this->setColorTypeFormat(GrColorType::kRG_1616, GrGLFormat::kRG16); in initFormatTable()
3078 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGBA16); in initFormatTable()
3109 this->setColorTypeFormat(GrColorType::kRGBA_16161616, GrGLFormat::kRGBA16); in initFormatTable()
3170 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRG16F); in initFormatTable()
3200 this->setColorTypeFormat(GrColorType::kRG_F16, GrGLFormat::kRG16F); in initFormatTable()
3234 if (GrGLFormat::kUnknown == static_cast<GrGLFormat>(i)) { in initFormatTable()
3276 GrGLFormat grGLFormat = static_cast<GrGLFormat>(i); in setupSampleCounts()
3333 bool GrGLCaps::canCopyTexSubImage(GrGLFormat dstFormat, bool dstHasMSAARenderBuffer, in canCopyTexSubImage()
3335 GrGLFormat srcFormat, bool srcHasMSAARenderBuffer, in canCopyTexSubImage()
3357 if ((dstFormat == GrGLFormat::kBGRA8 || srcFormat == GrGLFormat::kBGRA8) && in canCopyTexSubImage()
3404 bool GrGLCaps::canCopyAsBlit(GrGLFormat dstFormat, int dstSampleCnt, in canCopyAsBlit()
3406 GrGLFormat srcFormat, int srcSampleCnt, in canCopyAsBlit()
3464 bool GrGLCaps::canCopyAsDraw(GrGLFormat dstFormat, bool srcIsTexturable) const { in canCopyAsDraw()
3555 if (srcFormat == GrGLFormat::kBGRA8) { in getDstCopyRestrictions()
4553 return format.asGLFormat() == GrGLFormat::kSRGB8_ALPHA8; in isFormatSRGB()
4563 bool GrGLCaps::isFormatTexturable(GrGLFormat format) const { in isFormatTexturable()
4595 int GrGLCaps::getRenderTargetSampleCount(int requestedCount, GrGLFormat format) const { in getRenderTargetSampleCount()
4619 int GrGLCaps::maxRenderTargetSampleCount(GrGLFormat format) const { in maxRenderTargetSampleCount()
4632 bool GrGLCaps::canFormatBeFBOColorAttachment(GrGLFormat format) const { in canFormatBeFBOColorAttachment()
4644 bool GrGLCaps::formatSupportsTexStorage(GrGLFormat format) const { in formatSupportsTexStorage()
4648 bool GrGLCaps::shouldQueryImplementationReadSupport(GrGLFormat format) const { in shouldQueryImplementationReadSupport()
4670 void GrGLCaps::didQueryImplementationReadSupport(GrGLFormat format, in didQueryImplementationReadSupport()
4692 GrGLFormat glFormat = format.asGLFormat(); in onAreColorTypeAndFormatCompatible()
4704 if (format == GrGLFormat::kUnknown) { in onGetDefaultBackendFormat()
4717 if (this->isFormatTexturable(GrGLFormat::kCOMPRESSED_RGB8_ETC2)) { in getBackendFormatFromCompressionType()
4720 if (this->isFormatTexturable(GrGLFormat::kCOMPRESSED_ETC1_RGB8)) { in getBackendFormatFromCompressionType()
4725 if (this->isFormatTexturable(GrGLFormat::kCOMPRESSED_RGB8_BC1)) { in getBackendFormatFromCompressionType()
4731 if (this->isFormatTexturable(GrGLFormat::kCOMPRESSED_RGBA8_BC1)) { in getBackendFormatFromCompressionType()
4737 if (this->isFormatTexturable(GrGLFormat::kCOMPRESSED_ASTC_RGBA8_4x4)) { in getBackendFormatFromCompressionType()
4743 if (this->isFormatTexturable(GrGLFormat::kCOMPRESSED_ASTC_RGBA8_6x6)) { in getBackendFormatFromCompressionType()
4749 if (this->isFormatTexturable(GrGLFormat::kCOMPRESSED_ASTC_RGBA8_8x8)) { in getBackendFormatFromCompressionType()
4760 GrGLFormat glFormat = format.asGLFormat(); in onGetReadSwizzle()