26 p.setAntiAlias(
false);
61 canvas->clipRegion(rgn);
66 canvas->saveLayer(&
bounds,
nullptr);
67 canvas->clipRegion(rgn);
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorWHITE
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
DEF_SIMPLE_GM(clip_region, canvas, 256, 256)
DEF_SIMPLE_GM_BG(clipdrawdraw, canvas, 512, 512, 0xFFCCCCCC)
static void Draw(SkCanvas *canvas, const SkRect &rect)
Optional< SkRect > bounds
sk_sp< SkBlender > blender SkRect rect
static constexpr SkRect MakeWH(float w, float h)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)