Lines Matching refs:path
178 void AddPath(const SkGlyphRun& glyphRun, const SkPoint& offset, SkPath* path) {
183 } rec = { path, offset, glyphRun.positions().data() };
186 [](const SkPath* path, const SkMatrix& mx, void* ctx) {
188 if (path) {
192 rec->fPath->addPath(*path, total);
325 // paths etc). This should only happen when a path effect is attached to
329 SkDebugf("Unsupported path effect in addPaint.");
631 void SkSVGDevice::AutoElement::addPathAttributes(const SkPath& path,
634 SkParsePath::ToSVGString(path, &pathData, encoding);
772 AutoElement path("path", fWriter);
773 path.addPathAttributes(p, this->pathEncoding());
775 path.addAttribute("clip-rule", "evenodd");
791 clip_grp->addAttribute("clip-path", SkStringPrintf("url(#%s)", cid.c_str()));
833 SkPathBuilder path;
843 path.moveTo(pts[i]);
844 path.lineTo(pts[i+1]);
849 path.addPolygon(pts, SkToInt(count), false);
854 this->drawPath(path.detach(), paint, true);
885 AutoElement elem("path", this, fResourceBucket.get(), MxCp(this), paint);
889 void SkSVGDevice::drawPath(const SkPath& path, const SkPaint& paint, bool pathIsMutable) {
890 if (path.isInverseFillType()) {
891 SkDebugf("Inverse path fill type not yet implemented.");
896 SkPath* pathPtr = const_cast<SkPath*>(&path);
899 // Apply path effect from paint to path.
904 bool fill = path_paint->getFillPath(path, pathPtr);
914 path_paint.writable()->setPathEffect(nullptr); // path effect processed
917 // Create path element.
918 AutoElement elem("path", this, fResourceBucket.get(), MxCp(this), *path_paint);
1080 // Emit a single <path> element.
1081 SkPath path;
1083 AddPath(glyphRun, glyphRunList.origin(), &path);
1086 this->drawPath(path, paint);