50 ManagedBackendTexture::ReleaseProc,
51 mbet->releaseContext());
64 auto pmColor =
color.premul();
65 color = {pmColor.fR, pmColor.fG, pmColor.fB, pmColor.fA};
84 ManagedBackendTexture::ReleaseProc,
85 mbet->releaseContext());
97 auto mbet = ManagedGraphiteTexture::MakeFromPixmap(recorder,
112 sk_gpu_test::ManagedGraphiteTexture::ImageReleaseProc,
113 mbet->releaseContext());
132 return MakeBackendTextureImage(recorder,
bitmap.pixmap(), isMipmapped, isRenderable,
133 origin, isProtected);
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
@ kOpaque_SkAlphaType
pixel is opaque
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
SkColorType colorType() const
sk_sp< SkColorSpace > refColorSpace() const
SkAlphaType alphaType() const
SK_API sk_sp< SkImage > WrapTexture(skgpu::graphite::Recorder *, const skgpu::graphite::BackendTexture &, SkColorType colorType, SkAlphaType alphaType, sk_sp< SkColorSpace > colorSpace, skgpu::Origin origin, GenerateMipmapsFromBase generateMipmapsFromBase, TextureReleaseProc=nullptr, ReleaseContext=nullptr, std::string_view label={})
SK_API sk_sp< SkImage > BorrowTextureFrom(GrRecordingContext *context, const GrBackendTexture &backendTexture, GrSurfaceOrigin origin, SkColorType colorType, SkAlphaType alphaType, sk_sp< SkColorSpace > colorSpace, TextureReleaseProc textureReleaseProc=nullptr, ReleaseContext releaseContext=nullptr)
SK_API sk_sp< SkPixelRef > MakeWithData(const SkImageInfo &, size_t rowBytes, sk_sp< SkData > data)
SkAlphaType alphaType() const