4REG_FIDDLE(Canvas_kInitWithPrevious_SaveLayerFlag, 256, 160,
false, 0) {
6 SkPaint redPaint, bluePaint, scalePaint;
REG_FIDDLE(Canvas_kInitWithPrevious_SaveLayerFlag, 256, 160, false, 0)
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
int saveLayer(const SkRect *bounds, const SkPaint *paint)
@ 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 setImageFilter(sk_sp< SkImageFilter > imageFilter)
unsigned useCenter Optional< SkMatrix > matrix
SkSamplingOptions(SkFilterMode::kLinear))