Lines Matching defs:GrGLCaps
8 #include "src/gpu/gl/GrGLCaps.h"
30 GrGLCaps::GrGLCaps(const GrContextOptions& contextOptions,
93 void GrGLCaps::init(const GrContextOptions& contextOptions,
375 // This must be called after fCoreProfile is set on the GrGLCaps
862 void GrGLCaps::initGLSL(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) {
1037 void GrGLCaps::initFSAASupport(const GrContextOptions& contextOptions,
1075 void GrGLCaps::initBlendEqationSupport(const GrGLContextInfo& ctxInfo) {
1103 void GrGLCaps::initStencilSupport(const GrGLContextInfo& ctxInfo) {
1145 static const char* multi_draw_type_name(GrGLCaps::MultiDrawType multiDrawType) {
1147 case GrGLCaps::MultiDrawType::kNone : return "kNone";
1148 case GrGLCaps::MultiDrawType::kMultiDrawIndirect : return "kMultiDrawIndirect";
1149 case GrGLCaps::MultiDrawType::kANGLEOrWebGL : return "kMultiDrawIndirect";
1154 void GrGLCaps::onDumpJSON(SkJSONWriter* writer) const {
1285 void GrGLCaps::onDumpJSON(SkJSONWriter* writer) const { }
1288 void GrGLCaps::getTexImageExternalFormatAndType(GrGLFormat surfaceFormat, GrGLenum* externalFormat,
1295 void GrGLCaps::getTexSubImageDefaultFormatTypeAndColorType(GrGLFormat format,
1305 void GrGLCaps::getTexSubImageExternalFormatAndType(GrGLFormat surfaceFormat,
1314 void GrGLCaps::getReadPixelsFormat(GrGLFormat surfaceFormat, GrColorType surfaceColorType,
1321 void GrGLCaps::getExternalFormat(GrGLFormat surfaceFormat, GrColorType surfaceColorType,
1331 void GrGLCaps::setStencilFormatIndexForFormat(GrGLFormat format, int index) {
1337 void GrGLCaps::setColorTypeFormat(GrColorType colorType, GrGLFormat format) {
1343 void GrGLCaps::initFormatTable(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli,
3261 void GrGLCaps::setupSampleCounts(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) {
3307 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) {
3309 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) {
3333 bool GrGLCaps::canCopyTexSubImage(GrGLFormat dstFormat, bool dstHasMSAARenderBuffer,
3404 bool GrGLCaps::canCopyAsBlit(GrGLFormat dstFormat, int dstSampleCnt,
3423 if (GrGLCaps::kNoSupport_BlitFramebufferFlag & blitFramebufferFlags) {
3427 if (GrGLCaps::kResolveMustBeFull_BlitFrambufferFlag & blitFramebufferFlags) {
3438 if (GrGLCaps::kNoMSAADst_BlitFramebufferFlag & blitFramebufferFlags) {
3444 if (GrGLCaps::kNoFormatConversion_BlitFramebufferFlag & blitFramebufferFlags) {
3448 } else if (GrGLCaps::kNoFormatConversionForMSAASrc_BlitFramebufferFlag & blitFramebufferFlags) {
3454 if (GrGLCaps::kRectsMustMatchForMSAASrc_BlitFramebufferFlag & blitFramebufferFlags) {
3464 bool GrGLCaps::canCopyAsDraw(GrGLFormat dstFormat, bool srcIsTexturable) const {
3468 static bool has_msaa_render_buffer(const GrSurfaceProxy* surf, const GrGLCaps& glCaps) {
3482 bool GrGLCaps::onCanCopySurface(const GrSurfaceProxy* dst, const GrSurfaceProxy* src,
3521 GrCaps::DstCopyRestrictions GrGLCaps::getDstCopyRestrictions(const GrRenderTargetProxy* src,
3583 void GrGLCaps::applyDriverCorrectnessWorkarounds(const GrGLContextInfo& ctxInfo,
4362 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {
4390 bool GrGLCaps::onSurfaceSupportsWritePixels(const GrSurface* surface) const {
4410 GrCaps::SurfaceReadPixelsSupport GrGLCaps::surfaceSupportsReadPixels(
4465 GrCaps::SupportedRead GrGLCaps::onSupportedReadPixelsColorType(
4511 GrCaps::SupportedWrite GrGLCaps::supportedWritePixelsColorType(GrColorType surfaceColorType,
4545 bool GrGLCaps::onIsWindowRectanglesSupportedForRT(const GrBackendRenderTarget& backendRT) const {
4552 bool GrGLCaps::isFormatSRGB(const GrBackendFormat& format) const {
4556 bool GrGLCaps::isFormatTexturable(const GrBackendFormat& format, GrTextureType textureType) const {
4563 bool GrGLCaps::isFormatTexturable(GrGLFormat format) const {
4568 bool GrGLCaps::isFormatAsColorTypeRenderable(GrColorType ct, const GrBackendFormat& format,
4585 bool GrGLCaps::isFormatRenderable(const GrBackendFormat& format, int sampleCount) const {
4595 int GrGLCaps::getRenderTargetSampleCount(int requestedCount, GrGLFormat format) const {
4619 int GrGLCaps::maxRenderTargetSampleCount(GrGLFormat format) const {
4632 bool GrGLCaps::canFormatBeFBOColorAttachment(GrGLFormat format) const {
4636 bool GrGLCaps::isFormatCopyable(const GrBackendFormat& format) const {
4644 bool GrGLCaps::formatSupportsTexStorage(GrGLFormat format) const {
4648 bool GrGLCaps::shouldQueryImplementationReadSupport(GrGLFormat format) const {
4649 const auto& formatInfo = const_cast<GrGLCaps*>(this)->getFormatInfo(format);
4670 void GrGLCaps::didQueryImplementationReadSupport(GrGLFormat format,
4673 auto& formatInfo = const_cast<GrGLCaps*>(this)->getFormatInfo(format);
4690 bool GrGLCaps::onAreColorTypeAndFormatCompatible(GrColorType ct,
4702 GrBackendFormat GrGLCaps::onGetDefaultBackendFormat(GrColorType ct) const {
4710 GrBackendFormat GrGLCaps::getBackendFormatFromCompressionType(
4759 GrSwizzle GrGLCaps::onGetReadSwizzle(const GrBackendFormat& format, GrColorType colorType) const {
4773 GrSwizzle GrGLCaps::getWriteSwizzle(const GrBackendFormat& format, GrColorType colorType) const {
4786 GrDstSampleFlags GrGLCaps::onGetDstSampleFlagsForProxy(const GrRenderTargetProxy* rt) const {
4793 bool GrGLCaps::onSupportsDynamicMSAA(const GrRenderTargetProxy* rtProxy) const {
4797 uint64_t GrGLCaps::computeFormatKey(const GrBackendFormat& format) const {
4802 GrProgramDesc GrGLCaps::makeDesc(GrRenderTarget* /* rt */,
4812 std::vector<GrCaps::TestFormatColorTypeCombination> GrGLCaps::getTestingCombinations() const {