10 for (
bool antialias : {
false,
true } ) {
REG_FIDDLE(Clip, 256, 90, false, 0)
constexpr SkColor SK_ColorRED
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
int saveLayer(const SkRect *bounds, const SkPaint *paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void translate(SkScalar dx, SkScalar dy)
@ kInitWithPrevious_SaveLayerFlag
initializes with previous contents
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
static sk_sp< SkImageFilter > MatrixTransform(const SkMatrix &matrix, const SkSamplingOptions &sampling, sk_sp< SkImageFilter > input)
void setColor(SkColor color)
void setAntiAlias(bool aa)
void setImageFilter(sk_sp< SkImageFilter > imageFilter)
unsigned useCenter Optional< SkMatrix > matrix
SkSamplingOptions(SkFilterMode::kLinear))
static constexpr SkRect MakeWH(float w, float h)