21 const CanDrawPathArgs&
args)
const {
24 if (
args.fShape->style().isDashed() &&
args.fShape->asLine(pts, &inverted)) {
35bool DashLinePathRenderer::onDrawPath(
const DrawPathArgs&
args) {
37 "DashLinePathRenderer::onDrawPath");
39 switch (
args.fAAType) {
55 *
args.fViewMatrix, pts, aaMode,
args.fShape->style(),
56 args.fUserStencilSettings);
60 args.fSurfaceDrawContext->addDrawOp(
args.fClip, std::move(op));
SkAssertResult(font.textToGlyphs("Hello", 5, SkTextEncoding::kUTF8, glyphs, std::size(glyphs))==count)
#define GR_AUDIT_TRAIL_AUTO_FRAME(audit_trail, framename)
std::unique_ptr< GrOp > Owner
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
GrOp::Owner MakeDashLineOp(GrRecordingContext *context, GrPaint &&paint, const SkMatrix &viewMatrix, const SkPoint pts[2], AAMode aaMode, const GrStyle &style, const GrUserStencilSettings *stencilSettings)
bool CanDrawDashLine(const SkPoint pts[2], const GrStyle &style, const SkMatrix &viewMatrix)