62 return sk_make_sp<SkImage_Ganesh>(
89 {ct, image->alphaType(), image->refColorSpace()},
106 return sk_make_sp<SkSpecialImage_Gpu>(
120 return grImg->
view(context);
static constexpr SkColorType GrColorTypeToSkColorType(GrColorType ct)
sk_sp< T > sk_ref_sp(T *obj)
sk_sp< SkColorSpace > refColorSpace() const
GrColorType colorType() const
SkAlphaType alphaType() const
bool abandoned() override
GrTextureProxy * asTextureProxy() const
GrSurfaceProxy * proxy() const
SkISize backingStoreDimensions() const
size_t gpuMemorySize() const
GrSurfaceProxyPriv priv()
SkIRect backingStoreBoundsIRect() const
uint32_t uniqueID() const
sk_sp< SkSpecialImage > onMakeBackingStoreSubset(const SkIRect &subset) const override
SkSpecialImage_Gpu(GrRecordingContext *context, const SkIRect &subset, uint32_t uniqueID, GrSurfaceProxyView view, const SkColorInfo &colorInfo, const SkSurfaceProps &props)
GrRecordingContext * getContext() const override
size_t getSize() const override
bool isGaneshBacked() const override
sk_sp< SkImage > asImage() const override
GrSurfaceProxyView view(GrRecordingContext *) const
SkISize backingStoreDimensions() const override
virtual bool isGaneshBacked() const
uint32_t uniqueID() const
const SkIRect & subset() const
const SkSurfaceProps & props() const
const SkColorInfo & colorInfo() const
sk_sp< const SkImage > image
GrSurfaceProxyView AsView(GrRecordingContext *context, const SkSpecialImage *img)
sk_sp< SkSpecialImage > MakeFromTextureImage(GrRecordingContext *rContext, const SkIRect &subset, sk_sp< SkImage > image, const SkSurfaceProps &props)
sk_sp< SkSpecialImage > MakeDeferredFromGpu(GrRecordingContext *context, const SkIRect &subset, uint32_t uniqueID, GrSurfaceProxyView view, const GrColorInfo &colorInfo, const SkSurfaceProps &props)
std::tuple< GrSurfaceProxyView, GrColorType > AsView(GrRecordingContext *rContext, const SkImage *img, skgpu::Mipmapped mipmapped, GrImageTexGenPolicy policy)
bool contains(int32_t x, int32_t y) const