8#ifndef skgpu_graphite_Image_Base_Graphite_DEFINED
9#define skgpu_graphite_Image_Base_Graphite_DEFINED
47 std::string_view label)
const;
58 RequiredProperties)
const override;
115 mutable SkSpinlock fDeviceLinkLock;
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
uint32_t uniqueID() const
@ kAllow_CachingHint
allows internally caching decoded and copied pixels
Image_Base(const SkImageInfo &info, uint32_t uniqueID)
void linkDevice(sk_sp< Device >)
void onAsyncRescaleAndReadPixels(const SkImageInfo &, SkIRect srcRect, RescaleGamma, RescaleMode, ReadPixelsCallback, ReadPixelsContext) const override
bool onReadPixels(GrDirectContext *, const SkImageInfo &dstInfo, void *dstPixels, size_t dstRowBytes, int srcX, int srcY, CachingHint) const override
sk_sp< SkImage > onMakeSubset(Recorder *, const SkIRect &, RequiredProperties) const override
sk_sp< SkImage > makeColorTypeAndColorSpace(Recorder *, SkColorType targetCT, sk_sp< SkColorSpace > targetCS, RequiredProperties) const override
void notifyInUse(Recorder *, DrawContext *drawContext) const
virtual sk_sp< Image > copyImage(Recorder *, const SkIRect &subset, Budgeted, Mipmapped, SkBackingFit, std::string_view label) const
sk_sp< SkImage > onMakeColorTypeAndColorSpace(SkColorType, sk_sp< SkColorSpace >, GrDirectContext *) const override
bool getROPixels(GrDirectContext *, SkBitmap *, CachingHint=kAllow_CachingHint) const override
void linkDevices(const Image_Base *)
void onAsyncRescaleAndReadPixelsYUV420(SkYUVColorSpace, bool readAlpha, sk_sp< SkColorSpace >, SkIRect srcRect, SkISize dstSize, RescaleGamma, RescaleMode, ReadPixelsCallback, ReadPixelsContext) const override
bool isValid(GrRecordingContext *) const override
SkImage::ReadPixelsContext ReadPixelsContext
SkImage::ReadPixelsCallback ReadPixelsCallback