Lines Matching defs:image
8 #include "src/image/SkImage_Gpu.h"
67 // The image is being destroyed. If there is a stable copy proxy but we've been able to use
78 // If this image is used off the direct context it originated on, i.e. on a recording-only
206 // We only attempt to make a dual-proxy image on a direct context. This optimziation requires
255 // This image was created with a DDL context and cannot be instantiated.
306 // Draw this image's texture into the SFC.
754 sk_sp<SkImage> image = sk_make_sp<SkImage_Gpu>(sk_ref_sp(dContext),
758 if (!image) {
768 dContext, std::move(framebufferView),image->imageInfo().colorInfo());
775 return image;
782 sk_sp<SkImage> image,
785 if (!image || !backendTexture || !releaseProc) {
789 auto [view, ct] = as_IB(image)->asView(direct, GrMipmapped::kNo);
802 // We must make a copy of the image if the image is not unique, if the GrTexture owned by the
803 // image is not unique, or if the texture wraps an external object.
804 if (!image->unique() || !texture->unique() ||
806 // onMakeSubset will always copy the image.
807 image = as_IB(image)->onMakeSubset(image->bounds(), direct);
808 if (!image) {
811 return MakeBackendTextureFromSkImage(direct, std::move(image), backendTexture, releaseProc);
816 SkASSERT(image->unique());
818 // Take a reference to the GrTexture and release the image.
821 image = nullptr;