4REG_FIDDLE(Picture_MakePlaceholder, 256, 256,
false, 0) {
13 canvas->drawRect(
rect, redPaint);
24 MyCanvas myCanvas(canvas);
REG_FIDDLE(Picture_MakePlaceholder, 256, 256, false, 0)
constexpr SkColor SK_ColorRED
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
virtual void onDrawPicture(const SkPicture *picture, const SkMatrix *matrix, const SkPaint *paint)
void drawPicture(const SkPicture *picture)
void setColor(SkColor color)
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()
virtual SkRect cullRect() const =0
static sk_sp< SkPicture > MakePlaceholder(SkRect cull)
sk_sp< const SkPicture > picture
sk_sp< SkBlender > blender SkRect rect