27 paint.setAntiAlias(
true);
29 paint.setColor(0x800000FF);
32 paint.setColor(0x80FF0000);
35 paint.setColor(0x8000FF00);
38 paint.setColor(0x80FFFFFF);
70 matrix.setTranslate(110, 0);
73 matrix.postTranslate(110, 0);
76 paint.setAlphaf(0.5f);
77 matrix.postTranslate(110, 0);
107 paint.setAntiAlias(
false);
113 paint.setColor(0x800000FF);
SkISize getISize() override
SkString getName() const override
void onDraw(SkCanvas *canvas) override
void onOnceBeforeDraw() override
void onDraw(SkCanvas *canvas) override
SkString getName() const override
void onOnceBeforeDraw() override
SkISize getISize() override
void drawRect(const SkRect &rect, const SkPaint &paint)
void drawOval(const SkRect &oval, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void translate(SkScalar dx, SkScalar dy)
void drawPath(const SkPath &path, const SkPaint &paint)
void drawPicture(const SkPicture *picture)
static SkPath Polygon(const SkPoint pts[], int count, bool isClosed, SkPathFillType=SkPathFillType::kWinding, bool isVolatile=false)
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()
virtual SkRect cullRect() const =0
unsigned useCenter Optional< SkMatrix > matrix
sk_sp< SkBlender > blender SkRect rect
static constexpr SkISize Make(int32_t w, int32_t h)
constexpr float top() const
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
static constexpr SkRect MakeWH(float w, float h)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)
static sk_sp< SkPicture > make_picture()