static inline bool apply_path_effect(SkPath* dst, SkStrokeRec* strokeRec, const sk_sp<SkPathEffect>& pe, const SkPath& src) { if (!pe) { return false; } if (!pe->filterPath(dst, src, strokeRec, nullptr)) { return false; } dst->setIsVolatile(true); return true; }