276 {
277
279
282
283
285
286
288
289
292
293
294 {
297
300 }
301
302
303 {
306
309 }
310
311
312 {
315
319 }
320
322 p.setShader(std::move(shader));
323
326 }
327
329
330
331#if defined(SK_GRAPHITE)
332
334#endif
335
336
339
340
341 {
344
348
351
354
355 canvas->
saveLayer(
nullptr, &restorePaint);
358
361 }
362 }
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
int saveLayer(const SkRect *bounds, const SkPaint *paint)
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
bool writePixels(const SkImageInfo &info, const void *pixels, size_t rowBytes, int x, int y)
void clipRRect(const SkRRect &rrect, SkClipOp op, bool doAntiAlias)
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
void setColor(SkColor color)
void setBlendMode(SkBlendMode mode)
static SkRRect MakeRectXY(const SkRect &rect, SkScalar xRad, SkScalar yRad)
sk_sp< SkShader > makeWithColorFilter(sk_sp< SkColorFilter >) const
static constexpr int kTileWidth
static constexpr int kClipInset
static constexpr int kTileHeight
clipRect(r.rect, r.opAA.op(), r.opAA.aa())) template<> void Draw
sk_sp< const SkImage > image
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
SkRect makeInset(float dx, float dy) const
static constexpr SkRect MakeWH(float w, float h)