Go to the source code of this file.
|
| REG_FIDDLE (Picture_MakePlaceholder, 256, 256, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Picture_MakePlaceholder |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Picture_MakePlaceholder.cpp.
4 {
6public:
13 canvas->drawRect(
rect, redPaint);
14 }
16};
17
24 MyCanvas myCanvas(canvas);
26}
27}
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