56 return SkSpecialImages::MakeDeferredFromGpu(
62 return sk_make_sp<SkImage_Ganesh>(
85 return MakeDeferredFromGpu(rContext,
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)
Type::kYUV Type::kRGBA() int(0.7 *637)
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
std::tuple< GrSurfaceProxyView, GrColorType > AsView(GrRecordingContext *rContext, const SkImage *img, skgpu::Mipmapped mipmapped, GrImageTexGenPolicy policy)
bool contains(int32_t x, int32_t y) const