8#ifndef SkImage_GaneshBase_DEFINED
9#define SkImage_GaneshBase_DEFINED
49class RefCntedCallback;
static GrDirectContext * GrAsDirectContext(GrContext_Base *base)
virtual sk_sp< SkImage > onMakeColorTypeAndColorSpace(SkColorType, sk_sp< SkColorSpace >, GrDirectContext *) const =0
static bool ValidateBackendTexture(const GrCaps *, const GrBackendTexture &tex, GrColorType grCT, SkColorType ct, SkAlphaType at, sk_sp< SkColorSpace > cs)
GrDirectContext * directContext() const final
virtual std::tuple< GrSurfaceProxyView, GrColorType > asView(GrRecordingContext *, skgpu::Mipmapped, GrImageTexGenPolicy) const =0
virtual GrSemaphoresSubmitted flush(GrDirectContext *, const GrFlushInfo &) const =0
bool isValid(GrRecordingContext *) const final
sk_sp< SkImage > onMakeSubset(GrDirectContext *, const SkIRect &subset) const final
sk_sp< SkImage > makeSubset(GrDirectContext *direct, const SkIRect &subset) const final
SkImage_GaneshBase(sk_sp< GrImageContext >, SkImageInfo, uint32_t uniqueID)
static bool ValidateCompressedBackendTexture(const GrCaps *, const GrBackendTexture &tex, SkAlphaType)
virtual GrSurfaceOrigin origin() const =0
sk_sp< SkImage > makeColorTypeAndColorSpace(GrDirectContext *dContext, SkColorType targetColorType, sk_sp< SkColorSpace > targetCS) const final
sk_sp< GrImageContext > fContext
GrImageContext * context() const final
static sk_sp< GrTextureProxy > MakePromiseImageLazyProxy(GrContextThreadSafeProxy *, SkISize dimensions, const GrBackendFormat &, skgpu::Mipmapped, SkImages::PromiseImageTextureFulfillProc, sk_sp< skgpu::RefCntedCallback > releaseHelper)
bool getROPixels(GrDirectContext *, SkBitmap *, CachingHint) const final
virtual std::unique_ptr< GrFragmentProcessor > asFragmentProcessor(GrRecordingContext *, SkSamplingOptions, const SkTileMode[2], const SkMatrix &, const SkRect *, const SkRect *) const =0
bool onReadPixels(GrDirectContext *dContext, const SkImageInfo &dstInfo, void *dstPixels, size_t dstRB, int srcX, int srcY, CachingHint) const override
SkISize dimensions() const
uint32_t uniqueID() const