Home | History | Annotate | Download | only in image

Lines Matching refs:texture

169     // create the backing texture
269 // Needs to create a render target with external texture
489 // expect the created texture to be unscaled.
498 sk_sp<GrTexture> texture = sk_ref_sp(proxy->peekTexture());
504 sk_sp<GrSemaphore> sema = gpu->prepareTextureForCrossContextUsage(texture.get());
506 auto gen = GrBackendTextureImageGenerator::Make(std::move(texture), proxy->origin(),
558 ATRACE_ANDROID_FRAMEWORK("Upload Texture [%ux%u]", pixmap->width(), pixmap->height());
572 sk_sp<GrTexture> texture = sk_ref_sp(proxy->peekTexture());
578 sk_sp<GrSemaphore> sema = gpu->prepareTextureForCrossContextUsage(texture.get());
580 auto gen = GrBackendTextureImageGenerator::Make(std::move(texture), proxy->origin(),
689 // Ensure we have a texture backed image.
696 GrTexture* texture = image->getTexture();
697 if (!texture) {
698 // In context-loss cases, we may not have a texture.
703 if (texture->getContext() != ctx) {
707 // Flush any pending IO on the texture.
709 SkASSERT(!texture->surfacePriv().hasPendingIO());
712 // image is not unique, or if the texture wraps an external object.
713 if (!image->unique() || !texture->surfacePriv().hasUniqueRef() ||
714 texture->resourcePriv().refsWrappedObjects()) {
721 texture = image->getTexture();
722 if (!texture) {
726 // Flush to ensure that the copy is completed before we return the texture.
728 SkASSERT(!texture->surfacePriv().hasPendingIO());
731 SkASSERT(!texture->resourcePriv().refsWrappedObjects());
732 SkASSERT(texture->surfacePriv().hasUniqueRef());
736 sk_sp<GrTexture> textureRef(SkSafeRef(texture));
739 // Steal the backend texture from the GrTexture, releasing the GrTexture in the process.