25 p.setColor(0xf000ff00);
34 bottomRight.
moveTo(100, 0);
35 bottomRight.
lineTo(100, 100);
36 bottomRight.
lineTo(0, 100);
37 bottomRight.
lineTo(100, 0);
40 canvas->drawPath(upperLeft,
p);
41 canvas->drawPath(bottomRight,
p);
44 canvas->saveLayer(
nullptr,
nullptr);
46 canvas->translate(150, 0);
47 canvas->drawPath(upperLeft,
p);
48 canvas->drawPath(bottomRight,
p);
constexpr SkColor SK_ColorRED
SkPath & moveTo(SkScalar x, SkScalar y)
SkPath & lineTo(SkScalar x, SkScalar y)
DEF_SIMPLE_GM(PlusMergesAA, canvas, 256, 256)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
static constexpr SkRect MakeWH(float w, float h)