Lines Matching defs:texture

177     GrTexture* texture = fProxy->priv().peekTexture();
179 if (texture) {
186 return texture->getTextureHandle();
607 sk_sp<GrTexture> texture = sk_ref_sp(proxy->priv().peekTexture());
613 sk_sp<GrSemaphore> sema = gpu->prepareTextureForCrossContextUsage(texture.get());
615 auto gen = GrBackendTextureImageGenerator::Make(std::move(texture), proxy->origin(),
659 sk_sp<GrTexture> texture = sk_ref_sp(proxy->priv().peekTexture());
665 sk_sp<GrSemaphore> sema = gpu->prepareTextureForCrossContextUsage(texture.get());
667 auto gen = GrBackendTextureImageGenerator::Make(std::move(texture), proxy->origin(),
691 // Ensure we have a texture backed image.
698 GrTexture* texture = image->getTexture();
699 if (!texture) {
700 // In context-loss cases, we may not have a texture.
705 if (texture->getContext() != ctx) {
709 // Flush any pending IO on the texture.
711 SkASSERT(!texture->surfacePriv().hasPendingIO());
714 // image is not unique, or if the texture wraps an external object.
715 if (!image->unique() || !texture->surfacePriv().hasUniqueRef() ||
716 texture->resourcePriv().refsWrappedObjects()) {
723 texture = image->getTexture();
724 if (!texture) {
728 // Flush to ensure that the copy is completed before we return the texture.
730 SkASSERT(!texture->surfacePriv().hasPendingIO());
733 SkASSERT(!texture->resourcePriv().refsWrappedObjects());
734 SkASSERT(texture->surfacePriv().hasUniqueRef());
738 sk_sp<GrTexture> textureRef(SkSafeRef(texture));
741 // Steal the backend texture from the GrTexture, releasing the GrTexture in the process.