Lines Matching refs:tex
36 bool SkImage_GpuBase::ValidateBackendTexture(const GrCaps* caps, const GrBackendTexture& tex, in ValidateBackendTexture() argument
39 if (!tex.isValid()) { in ValidateBackendTexture()
46 GrBackendFormat backendFormat = tex.getBackendFormat(); in ValidateBackendTexture()
55 const GrBackendTexture& tex, in ValidateCompressedBackendTexture() argument
57 if (!tex.isValid() || tex.width() <= 0 || tex.height() <= 0) { in ValidateCompressedBackendTexture()
61 if (tex.width() > caps->maxTextureSize() || tex.height() > caps->maxTextureSize()) { in ValidateCompressedBackendTexture()
69 GrBackendFormat backendFormat = tex.getBackendFormat(); in ValidateCompressedBackendTexture()
300 sk_sp<GrTexture> tex = resourceProvider->wrapBackendTexture(backendTexture, in MakePromiseImageLazyProxy() local
304 if (!tex) { in MakePromiseImageLazyProxy()
307 tex->setRelease(fReleaseHelper); in MakePromiseImageLazyProxy()
308 fTexture = tex.get(); in MakePromiseImageLazyProxy()
316 return {std::move(tex), kReleaseCallbackOnInstantiation, kKeySyncMode}; in MakePromiseImageLazyProxy()