Lines Matching defs:desc
622 GrGLTexture::Desc* desc,
629 desc->fSize = {backendTex.width(), backendTex.height()};
630 desc->fTarget = info.fTarget;
631 desc->fID = info.fID;
632 desc->fFormat = GrGLFormatFromGLEnum(info.fFormat);
634 if (desc->fFormat == GrGLFormat::kUnknown) {
637 if (GR_GL_TEXTURE_EXTERNAL == desc->fTarget) {
641 } else if (GR_GL_TEXTURE_RECTANGLE == desc->fTarget) {
645 } else if (GR_GL_TEXTURE_2D != desc->fTarget) {
660 GrGLTexture::Desc desc;
661 if (!check_backend_texture(backendTex, this->glCaps(), &desc)) {
666 desc.fOwnership = GrBackendObjectOwnership::kBorrowed;
668 desc.fOwnership = GrBackendObjectOwnership::kOwned;
674 auto texture = GrGLTexture::MakeWrapped(this, mipmapStatus, desc,
684 const GrGLCaps& caps, GrGLTexture::Desc* desc,
691 desc->fSize = {backendTex.width(), backendTex.height()};
692 desc->fTarget = info.fTarget;
693 desc->fID = info.fID;
694 desc->fFormat = GrGLFormatFromGLEnum(info.fFormat);
696 if (desc->fFormat == GrGLFormat::kUnknown) {
700 if (GR_GL_TEXTURE_2D != desc->fTarget) {
714 GrGLTexture::Desc desc;
715 if (!check_compressed_backend_texture(backendTex, this->glCaps(), &desc)) {
720 desc.fOwnership = GrBackendObjectOwnership::kBorrowed;
722 desc.fOwnership = GrBackendObjectOwnership::kOwned;
728 auto texture = GrGLTexture::MakeWrapped(this, mipmapStatus, desc,
740 GrGLTexture::Desc desc;
741 if (!check_backend_texture(backendTex, this->glCaps(), &desc)) {
744 SkASSERT(caps.isFormatRenderable(desc.fFormat, sampleCnt));
745 SkASSERT(caps.isFormatTexturable(desc.fFormat));
748 if (GR_GL_TEXTURE_EXTERNAL == desc.fTarget) {
753 desc.fOwnership = GrBackendObjectOwnership::kBorrowed;
755 desc.fOwnership = GrBackendObjectOwnership::kOwned;
759 sampleCnt = caps.getRenderTargetSampleCount(sampleCnt, desc.fFormat);
763 if (!this->createRenderTargetObjects(desc, sampleCnt, &rtIDs)) {
771 this, sampleCnt, desc, backendTex.getGLTextureParams(), rtIDs, cacheable,
1191 bool GrGLGpu::createRenderTargetObjects(const GrGLTexture::Desc& desc,
1214 if (desc.fFormat == GrGLFormat::kUnknown) {
1245 colorRenderbufferFormat = this->glCaps().getRenderbufferInternalFormat(desc.fFormat);
1260 desc.fSize.width(), desc.fSize.height())) {
1293 desc.fTarget,
1294 desc.fID,
1307 desc.fTarget,
1312 desc.fTarget,
1313 desc.fID,
1468 GrGLTexture::Desc desc;
1469 desc.fSize = dimensions;
1470 desc.fTarget = GR_GL_TEXTURE_2D;
1471 desc.fOwnership = GrBackendObjectOwnership::kOwned;
1472 desc.fFormat = format.asGLFormat();
1473 desc.fID = this->createCompressedTexture2D(desc.fSize, compression, desc.fFormat,
1475 if (!desc.fID) {
1480 if (!this->uploadCompressedTexData(compression, desc.fFormat, dimensions, mipMapped,
1482 GL_CALL(DeleteTextures(1, &desc.fID));
1494 auto tex = sk_make_sp<GrGLTexture>(this, budgeted, desc, mipmapStatus);
3737 bool GrGLGpu::compile(const GrProgramDesc& desc, const GrProgramInfo& programInfo) {
3741 desc, programInfo, &stat);