60 {
63 return;
64 }
65
67
69
71
74 if (manuallyTile) {
76 } else {
78 }
80 canvas->
drawRect(dstRect, borderPaint);
81
86 if (manuallyTile) {
89 } else {
92 }
93 canvas->
drawRect(dstRect, borderPaint);
94
96 if (manuallyTile) {
98 } else {
100 }
101 canvas->
drawRect(dstRect, borderPaint);
102}
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
@ kStrict_SrcRectConstraint
sample only inside bounds; slower
void drawImageRect(const SkImage *, const SkRect &src, const SkRect &dst, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
void setStyle(Style style)
@ kStroke_Style
set to stroke geometry
sk_sp< const SkImage > image
void DrawImage(SkCanvas *canvas, const SkImage *image, SkScalar x, SkScalar y, const SkSamplingOptions &sampling={}, const SkPaint *paint=nullptr, SkCanvas::SrcRectConstraint constraint=SkCanvas::kFast_SrcRectConstraint)
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)
void offset(float dx, float dy)
static constexpr SkRect MakeWH(float w, float h)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)