8#ifndef SkImage_Raster_DEFINED
9#define SkImage_Raster_DEFINED
56 RequiredProperties)
const override;
90 imgRaster->fBitmap.fMips = std::move(mips);
SK_SPI sk_sp< SkImage > SkMakeImageFromRasterBitmap(const SkBitmap &, SkCopyPixelsMode)
@ kAlways_SkCopyPixelsMode
always copy src pixels (even if they are marked immutable)
sk_sp< SkImage > MakeRasterCopyPriv(const SkPixmap &pmap, uint32_t id)
static constexpr bool SkToBool(const T &x)
SkPixelRef * pixelRef() const
const SkPixmap & pixmap() const
virtual GrImageContext * context() const
bool onHasMipmaps() const override
void notifyAddedToRasterCache() const override
bool getROPixels(GrDirectContext *, SkBitmap *, CachingHint) const override
sk_sp< SkImage > onMakeSubset(GrDirectContext *, const SkIRect &) const override
bool onPeekPixels(SkPixmap *) const override
bool onAsLegacyBitmap(GrDirectContext *, SkBitmap *) const override
bool onIsProtected() const override
SkImage_Base::Type type() const override
const SkBitmap * onPeekBitmap() const override
sk_sp< SkImage > onMakeWithMipmaps(sk_sp< SkMipmap > mips) const override
~SkImage_Raster() override
bool onReadPixels(GrDirectContext *, const SkImageInfo &, void *, size_t, int srcX, int srcY, CachingHint) const override
SkPixelRef * getPixelRef() const
sk_sp< SkImage > onReinterpretColorSpace(sk_sp< SkColorSpace >) const override
SkMipmap * onPeekMips() const override
bool isValid(GrRecordingContext *context) const override
sk_sp< SkImage > onMakeColorTypeAndColorSpace(SkColorType, sk_sp< SkColorSpace >, GrDirectContext *) const override
friend class SkImage_Raster
static SkMipmap * Build(const SkPixmap &src, SkDiscardableFactoryProc, bool computeContents=true)
void notifyAddedToCache()