32 ASSERT_TRUE(OpenPlaygroundHere(builder.
Build()));
45 DlClipOp::kDifference);
47 DlClipOp::kDifference);
71 ASSERT_TRUE(OpenPlaygroundHere(builder.
Build()));
95 ASSERT_TRUE(OpenPlaygroundHere(builder.
Build()));
106 for (
int i = 0;
i < 15;
i++) {
107 builder.
Scale(0.8, 0.8);
109 paint.
setColor(colors[
i % colors.size()]);
113 ASSERT_TRUE(OpenPlaygroundHere(builder.
Build()));
127 DlClipOp::kIntersect);
139 ASSERT_TRUE(OpenPlaygroundHere(builder.
Build()));
void ClipRect(const DlRect &rect, DlClipOp clip_op=DlClipOp::kIntersect, bool is_aa=false) override
void DrawCircle(const DlPoint ¢er, DlScalar radius, const DlPaint &paint) override
void Scale(DlScalar sx, DlScalar sy) override
void Translate(DlScalar tx, DlScalar ty) override
void DrawPaint(const DlPaint &paint) override
sk_sp< DisplayList > Build()
void DrawPath(const DlPath &path, const DlPaint &paint) override
void ClipPath(const DlPath &path, DlClipOp clip_op=DlClipOp::kIntersect, bool is_aa=false) override
void DrawRect(const DlRect &rect, const DlPaint &paint) override
DlPaint & setColor(DlColor color)
DlPaint & setBlendMode(DlBlendMode mode)
DlPathBuilder & LineTo(DlPoint p2)
Draw a line from the current point to the indicated point p2.
DlPathBuilder & MoveTo(DlPoint p2)
Start a new contour that will originate at the indicated point p2.
const DlPath TakePath()
Returns the path constructed by this path builder and resets its internal state to the default state ...
DlPathBuilder & QuadraticCurveTo(DlPoint cp, DlPoint p2)
Draw a quadratic bezier curve from the current point to the indicated point p2, using the indicated p...
DlPathBuilder & CubicCurveTo(DlPoint cp1, DlPoint cp2, DlPoint p2)
Draw a cubic bezier curve from the current point to the indicated point p2, using the indicated point...
static DlPath MakeCircle(const DlPoint center, DlScalar radius)
TEST_P(AiksTest, DrawAtlasNoColor)
static constexpr DlColor kWhite()
static constexpr DlColor kBlack()
static constexpr DlColor kMaroon()
static constexpr DlColor kYellow()
static constexpr DlColor kFuchsia()
static constexpr DlColor kRed()
static constexpr DlColor kGreen()
static constexpr DlColor kSkyBlue()
static constexpr TRect MakeXYWH(Type x, Type y, Type width, Type height)