8#ifndef SkSpecialImage_DEFINED
9#define SkSpecialImage_DEFINED
61 uint32_t
uniqueID()
const {
return fUniqueID; }
81 bool strict =
true)
const;
127 bool strict=
true)
const;
153 const uint32_t fUniqueID;
@ kNeedNewImageUniqueID_SpecialImage
SkAlphaType alphaType() const
SkColorSpace * colorSpace() const
SkColorType colorType() const
virtual size_t getSize() const =0
virtual sk_sp< SkSpecialImage > onMakeBackingStoreSubset(const SkIRect &subset) const =0
void draw(SkCanvas *canvas, SkScalar x, SkScalar y, const SkSamplingOptions &sampling, const SkPaint *paint, bool strict=true) const
virtual sk_sp< SkImage > asImage() const =0
sk_sp< SkSpecialImage > makeSubset(const SkIRect &subset) const
virtual GrRecordingContext * getContext() const
virtual bool isGaneshBacked() const
SkAlphaType alphaType() const
SkColorSpace * getColorSpace() const
uint32_t uniqueID() const
SkSpecialImage(const SkIRect &subset, uint32_t uniqueID, const SkColorInfo &, const SkSurfaceProps &)
const SkIRect & subset() const
void draw(SkCanvas *canvas, SkScalar x, SkScalar y) const
sk_sp< SkSpecialImage > makePixelOutset() const
const SkSurfaceProps & props() const
void(* RasterReleaseProc)(void *pixels, ReleaseContext)
const SkColorInfo & colorInfo() const
SkISize dimensions() const
virtual SkISize backingStoreDimensions() const =0
virtual sk_sp< SkShader > asShader(SkTileMode, const SkSamplingOptions &, const SkMatrix &lm, bool strict=true) const
SkColorType colorType() const
virtual bool isGraphiteBacked() const
SkSamplingOptions sampling
bool AsBitmap(const SkSpecialImage *img, SkBitmap *result)
sk_sp< SkSpecialImage > MakeFromRaster(const SkIRect &subset, const SkBitmap &bm, const SkSurfaceProps &props)
sk_sp< SkSpecialImage > CopyFromRaster(const SkIRect &subset, const SkBitmap &bm, const SkSurfaceProps &props)
SkSamplingOptions(SkFilterMode::kLinear))
constexpr int32_t height() const
static constexpr SkIRect MakeSize(const SkISize &size)
constexpr int32_t width() const
constexpr SkIRect makeOffset(int32_t dx, int32_t dy) const