31 if (!
image || !canvas) {
48 if (!
image || !keyValues) {
57 keyValues[0] = bm->pixelRef()->getGenerationID();
59 subset.
offset(bm->pixelRefOrigin());
67 keyValues[2] = subset.
fLeft;
68 keyValues[3] = subset.
fTop;
69 keyValues[4] = subset.
fRight;
static SkImage_Base * as_IB(SkImage *image)
static SkDevice * TopDevice(const SkCanvas *canvas)
void drawImageRect(const SkImage *, const SkRect &src, const SkRect &dst, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint)
virtual Type type() const =0
virtual const SkBitmap * onPeekBitmap() const
bool getImageKeyValues(uint32_t keyValues[SkTiledImageUtils::kNumImageKeyValues]) const
uint32_t uniqueID() const
sk_sp< const SkImage > image
SkSamplingOptions sampling
static constexpr int kNumImageKeyValues
SK_API void DrawImageRect(SkCanvas *canvas, const SkImage *image, const SkRect &src, const SkRect &dst, const SkSamplingOptions &sampling={}, const SkPaint *paint=nullptr, SkCanvas::SrcRectConstraint constraint=SkCanvas::kFast_SrcRectConstraint)
SK_API void GetImageKeyValues(const SkImage *image, uint32_t keyValues[kNumImageKeyValues])
int32_t fBottom
larger y-axis bounds
int32_t fTop
smaller y-axis bounds
void offset(int32_t dx, int32_t dy)
int32_t fLeft
smaller x-axis bounds
int32_t fRight
larger x-axis bounds