• Home
  • Raw
  • Download

Lines Matching refs:GrGLFormat

1110         fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX8;  in initStencilSupport()
1111 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX16; in initStencilSupport()
1113 fStencilFormats.push_back() = GrGLFormat::kDEPTH24_STENCIL8; in initStencilSupport()
1119 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX8; in initStencilSupport()
1122 fStencilFormats.push_back() = GrGLFormat::kDEPTH24_STENCIL8; in initStencilSupport()
1125 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX8; in initStencilSupport()
1127 fStencilFormats.push_back() = GrGLFormat::kDEPTH24_STENCIL8; in initStencilSupport()
1278 void GrGLCaps::getTexImageExternalFormatAndType(GrGLFormat surfaceFormat, GrGLenum* externalFormat, in getTexImageExternalFormatAndType()
1285 void GrGLCaps::getTexSubImageDefaultFormatTypeAndColorType(GrGLFormat format, in getTexSubImageDefaultFormatTypeAndColorType()
1295 void GrGLCaps::getTexSubImageExternalFormatAndType(GrGLFormat surfaceFormat, in getTexSubImageExternalFormatAndType()
1304 void GrGLCaps::getReadPixelsFormat(GrGLFormat surfaceFormat, GrColorType surfaceColorType, in getReadPixelsFormat()
1311 void GrGLCaps::getExternalFormat(GrGLFormat surfaceFormat, GrColorType surfaceColorType, in getExternalFormat()
1321 void GrGLCaps::setStencilFormatIndexForFormat(GrGLFormat format, int index) { in setStencilFormatIndexForFormat()
1327 void GrGLCaps::setColorTypeFormat(GrColorType colorType, GrGLFormat format) { in setColorTypeFormat()
1329 SkASSERT(fColorTypeToFormatTable[idx] == GrGLFormat::kUnknown); in setColorTypeFormat()
1378 fColorTypeToFormatTable[i] = GrGLFormat::kUnknown; in initFormatTable()
1391 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGBA8); in initFormatTable()
1427 this->setColorTypeFormat(GrColorType::kRGBA_8888, GrGLFormat::kRGBA8); in initFormatTable()
1460 this->setColorTypeFormat(GrColorType::kBGRA_8888, GrGLFormat::kRGBA8); in initFormatTable()
1514 FormatInfo& info = this->getFormatInfo(GrGLFormat::kR8); in initFormatTable()
1557 this->setColorTypeFormat(GrColorType::kAlpha_8, GrGLFormat::kR8); in initFormatTable()
1591 this->setColorTypeFormat(GrColorType::kGray_8, GrGLFormat::kR8); in initFormatTable()
1628 FormatInfo& info = this->getFormatInfo(GrGLFormat::kALPHA8); in initFormatTable()
1683 if (fColorTypeToFormatTable[idx] == GrGLFormat::kUnknown) { in initFormatTable()
1684 this->setColorTypeFormat(GrColorType::kAlpha_8, GrGLFormat::kALPHA8); in initFormatTable()
1718 FormatInfo& info = this->getFormatInfo(GrGLFormat::kLUMINANCE8); in initFormatTable()
1766 if (fColorTypeToFormatTable[idx] == GrGLFormat::kUnknown) { in initFormatTable()
1767 this->setColorTypeFormat(GrColorType::kGray_8, GrGLFormat::kLUMINANCE8); in initFormatTable()
1798 FormatInfo& info = this->getFormatInfo(GrGLFormat::kLUMINANCE8_ALPHA8); in initFormatTable()
1839 if (fColorTypeToFormatTable[idx] == GrGLFormat::kUnknown) { in initFormatTable()
1841 GrGLFormat::kLUMINANCE8_ALPHA8); in initFormatTable()
1871 FormatInfo& info = this->getFormatInfo(GrGLFormat::kBGRA8); in initFormatTable()
1966 this->setColorTypeFormat(GrColorType::kBGRA_8888, GrGLFormat::kBGRA8); in initFormatTable()
2000 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGB565); in initFormatTable()
2045 this->setColorTypeFormat(GrColorType::kBGR_565, GrGLFormat::kRGB565); in initFormatTable()
2077 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGBA16F); in initFormatTable()
2150 this->setColorTypeFormat(GrColorType::kRGBA_F16, GrGLFormat::kRGBA16F); in initFormatTable()
2183 this->setColorTypeFormat(GrColorType::kRGBA_F16_Clamped, GrGLFormat::kRGBA16F); in initFormatTable()
2215 FormatInfo& info = this->getFormatInfo(GrGLFormat::kR16F); in initFormatTable()
2274 this->setColorTypeFormat(GrColorType::kAlpha_F16, GrGLFormat::kR16F); in initFormatTable()
2328 FormatInfo& info = this->getFormatInfo(GrGLFormat::kLUMINANCE16F); in initFormatTable()
2359 if (fColorTypeToFormatTable[idx] == GrGLFormat::kUnknown) { in initFormatTable()
2360 this->setColorTypeFormat(GrColorType::kAlpha_F16, GrGLFormat::kLUMINANCE16F); in initFormatTable()
2391 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGB8); in initFormatTable()
2430 this->setColorTypeFormat(GrColorType::kRGB_888x, GrGLFormat::kRGB8); in initFormatTable()
2459 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRG8); in initFormatTable()
2495 this->setColorTypeFormat(GrColorType::kRG_88, GrGLFormat::kRG8); in initFormatTable()
2528 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGB10_A2); in initFormatTable()
2564 this->setColorTypeFormat(GrColorType::kRGBA_1010102, GrGLFormat::kRGB10_A2); in initFormatTable()
2597 this->setColorTypeFormat(GrColorType::kBGRA_1010102, GrGLFormat::kRGB10_A2); in initFormatTable()
2630 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGBA4); in initFormatTable()
2662 this->setColorTypeFormat(GrColorType::kABGR_4444, GrGLFormat::kRGBA4); in initFormatTable()
2693 FormatInfo& info = this->getFormatInfo(GrGLFormat::kSRGB8_ALPHA8); in initFormatTable()
2767 this->setColorTypeFormat(GrColorType::kRGBA_8888_SRGB, GrGLFormat::kSRGB8_ALPHA8); in initFormatTable()
2802 FormatInfo& info = this->getFormatInfo(GrGLFormat::kCOMPRESSED_RGB8_BC1); in initFormatTable()
2816 FormatInfo& info = this->getFormatInfo(GrGLFormat::kCOMPRESSED_RGBA8_BC1); in initFormatTable()
2830 FormatInfo& info = this->getFormatInfo(GrGLFormat::kCOMPRESSED_RGB8_ETC2); in initFormatTable()
2852 FormatInfo& info = this->getFormatInfo(GrGLFormat::kCOMPRESSED_ETC1_RGB8); in initFormatTable()
2866 FormatInfo& info = this->getFormatInfo(GrGLFormat::kR16); in initFormatTable()
2908 this->setColorTypeFormat(GrColorType::kAlpha_16, GrGLFormat::kR16); in initFormatTable()
2940 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRG16); in initFormatTable()
2982 this->setColorTypeFormat(GrColorType::kRG_1616, GrGLFormat::kRG16); in initFormatTable()
3023 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGBA16); in initFormatTable()
3054 this->setColorTypeFormat(GrColorType::kRGBA_16161616, GrGLFormat::kRGBA16); in initFormatTable()
3115 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRG16F); in initFormatTable()
3145 this->setColorTypeFormat(GrColorType::kRG_F16, GrGLFormat::kRG16F); in initFormatTable()
3179 if (GrGLFormat::kUnknown == static_cast<GrGLFormat>(i)) { in initFormatTable()
3221 GrGLFormat grGLFormat = static_cast<GrGLFormat>(i); in setupSampleCounts()
3278 bool GrGLCaps::canCopyTexSubImage(GrGLFormat dstFormat, bool dstHasMSAARenderBuffer, in canCopyTexSubImage()
3280 GrGLFormat srcFormat, bool srcHasMSAARenderBuffer, in canCopyTexSubImage()
3302 if ((dstFormat == GrGLFormat::kBGRA8 || srcFormat == GrGLFormat::kBGRA8) && in canCopyTexSubImage()
3349 bool GrGLCaps::canCopyAsBlit(GrGLFormat dstFormat, int dstSampleCnt, in canCopyAsBlit()
3351 GrGLFormat srcFormat, int srcSampleCnt, in canCopyAsBlit()
3409 bool GrGLCaps::canCopyAsDraw(GrGLFormat dstFormat, bool srcIsTexturable) const { in canCopyAsDraw()
3500 if (srcFormat == GrGLFormat::kBGRA8) { in getDstCopyRestrictions()
4498 return format.asGLFormat() == GrGLFormat::kSRGB8_ALPHA8; in isFormatSRGB()
4508 bool GrGLCaps::isFormatTexturable(GrGLFormat format) const { in isFormatTexturable()
4540 int GrGLCaps::getRenderTargetSampleCount(int requestedCount, GrGLFormat format) const { in getRenderTargetSampleCount()
4564 int GrGLCaps::maxRenderTargetSampleCount(GrGLFormat format) const { in maxRenderTargetSampleCount()
4577 bool GrGLCaps::canFormatBeFBOColorAttachment(GrGLFormat format) const { in canFormatBeFBOColorAttachment()
4589 bool GrGLCaps::formatSupportsTexStorage(GrGLFormat format) const { in formatSupportsTexStorage()
4593 bool GrGLCaps::shouldQueryImplementationReadSupport(GrGLFormat format) const { in shouldQueryImplementationReadSupport()
4615 void GrGLCaps::didQueryImplementationReadSupport(GrGLFormat format, in didQueryImplementationReadSupport()
4637 GrGLFormat glFormat = format.asGLFormat(); in onAreColorTypeAndFormatCompatible()
4649 if (format == GrGLFormat::kUnknown) { in onGetDefaultBackendFormat()
4662 if (this->isFormatTexturable(GrGLFormat::kCOMPRESSED_RGB8_ETC2)) { in getBackendFormatFromCompressionType()
4665 if (this->isFormatTexturable(GrGLFormat::kCOMPRESSED_ETC1_RGB8)) { in getBackendFormatFromCompressionType()
4670 if (this->isFormatTexturable(GrGLFormat::kCOMPRESSED_RGB8_BC1)) { in getBackendFormatFromCompressionType()
4676 if (this->isFormatTexturable(GrGLFormat::kCOMPRESSED_RGBA8_BC1)) { in getBackendFormatFromCompressionType()
4687 GrGLFormat glFormat = format.asGLFormat(); in onGetReadSwizzle()