Home | History | Annotate | Download | only in image

Lines Matching refs:texture

159     // create the backing texture
259 // Needs to create a render target with external texture
478 sk_sp<GrTexture> texture = sk_ref_sp(proxy->peekTexture());
484 sk_sp<GrSemaphore> sema = gpu->prepareTextureForCrossContextUsage(texture.get());
486 auto gen = GrBackendTextureImageGenerator::Make(std::move(texture), proxy->origin(),
533 ATRACE_ANDROID_FRAMEWORK("Upload Texture [%ux%u]", pixmap->width(), pixmap->height());
547 sk_sp<GrTexture> texture = sk_ref_sp(proxy->peekTexture());
553 sk_sp<GrSemaphore> sema = gpu->prepareTextureForCrossContextUsage(texture.get());
555 auto gen = GrBackendTextureImageGenerator::Make(std::move(texture), proxy->origin(),
581 // Ensure we have a texture backed image.
588 GrTexture* texture = image->getTexture();
589 if (!texture) {
590 // In context-loss cases, we may not have a texture.
595 if (texture->getContext() != ctx) {
599 // Flush any pending IO on the texture.
601 SkASSERT(!texture->surfacePriv().hasPendingIO());
604 // image is not unique, or if the texture wraps an external object.
605 if (!image->unique() || !texture->surfacePriv().hasUniqueRef() ||
606 texture->resourcePriv().refsWrappedObjects()) {
613 texture = image->getTexture();
614 if (!texture) {
618 // Flush to ensure that the copy is completed before we return the texture.
620 SkASSERT(!texture->surfacePriv().hasPendingIO());
623 SkASSERT(!texture->resourcePriv().refsWrappedObjects());
624 SkASSERT(texture->surfacePriv().hasUniqueRef());
628 sk_sp<GrTexture> textureRef(SkSafeRef(texture));
631 // Steal the backend texture from the GrTexture, releasing the GrTexture in the process.