Lines Matching refs:backendTex
620 static bool check_backend_texture(const GrBackendTexture& backendTex,
625 if (!backendTex.getGLTextureInfo(&info) || !info.fID || !info.fFormat) {
629 desc->fSize = {backendTex.width(), backendTex.height()};
648 if (backendTex.isProtected()) {
656 sk_sp<GrTexture> GrGLGpu::onWrapBackendTexture(const GrBackendTexture& backendTex,
661 if (!check_backend_texture(backendTex, this->glCaps(), &desc)) {
671 GrMipmapStatus mipmapStatus = backendTex.hasMipmaps() ? GrMipmapStatus::kValid
675 backendTex.getGLTextureParams(), cacheable, ioType);
676 if (this->glCaps().isFormatRenderable(backendTex.getBackendFormat(), 1)) {
683 static bool check_compressed_backend_texture(const GrBackendTexture& backendTex,
687 if (!backendTex.getGLTextureInfo(&info) || !info.fID || !info.fFormat) {
691 desc->fSize = {backendTex.width(), backendTex.height()};
703 if (backendTex.isProtected()) {
711 sk_sp<GrTexture> GrGLGpu::onWrapCompressedBackendTexture(const GrBackendTexture& backendTex,
715 if (!check_compressed_backend_texture(backendTex, this->glCaps(), &desc)) {
725 GrMipmapStatus mipmapStatus = backendTex.hasMipmaps() ? GrMipmapStatus::kValid
729 backendTex.getGLTextureParams(), cacheable,
734 sk_sp<GrTexture> GrGLGpu::onWrapRenderableBackendTexture(const GrBackendTexture& backendTex,
741 if (!check_backend_texture(backendTex, this->glCaps(), &desc)) {
767 GrMipmapStatus mipmapStatus = backendTex.hasMipmaps() ? GrMipmapStatus::kDirty
771 this, sampleCnt, desc, backendTex.getGLTextureParams(), rtIDs, cacheable,