Searched refs:traversalState (Results 1 – 4 of 4) sorted by relevance
46 PathTraversalState& traversalState = *static_cast<PathTraversalState*>(info); in pathLengthApplierFunction() local47 if (traversalState.m_success) in pathLengthApplierFunction()49 traversalState.m_previous = traversalState.m_current; in pathLengthApplierFunction()54 segmentLength = traversalState.moveTo(points[0]); in pathLengthApplierFunction()57 segmentLength = traversalState.lineTo(points[0]); in pathLengthApplierFunction()60 segmentLength = traversalState.quadraticBezierTo(points[0], points[1]); in pathLengthApplierFunction()63 segmentLength = traversalState.cubicBezierTo(points[0], points[1], points[2]); in pathLengthApplierFunction()66 segmentLength = traversalState.closeSubpath(); in pathLengthApplierFunction()69 traversalState.m_totalLength += segmentLength; in pathLengthApplierFunction()70 if ((traversalState.m_action == PathTraversalState::TraversalPointAtLength || in pathLengthApplierFunction()[all …]
120 static float curveLength(PathTraversalState& traversalState, CurveType curve) in curveLength() argument135 if (traversalState.m_action == PathTraversalState::TraversalPointAtLength in curveLength()136 || traversalState.m_action == PathTraversalState::TraversalNormalAngleAtLength) { in curveLength()137 traversalState.m_previous = curve.start; in curveLength()138 traversalState.m_current = curve.end; in curveLength()139 if (traversalState.m_totalLength + totalLength > traversalState.m_desiredLength) in curveLength()
36 …void setCurrentTraversalState(PathTraversalState* traversalState) { m_traversalState = traversalSt… in setCurrentTraversalState() argument
81 …lStateBuilder* globalSVGPathTraversalStateBuilder(PathTraversalState& traversalState, float length) in globalSVGPathTraversalStateBuilder() argument87 s_builder->setCurrentTraversalState(&traversalState); in globalSVGPathTraversalStateBuilder()259 PathTraversalState traversalState(PathTraversalState::TraversalSegmentAtLength); in getSVGPathSegAtLengthFromSVGPathByteStream() local260 …SVGPathTraversalStateBuilder* builder = globalSVGPathTraversalStateBuilder(traversalState, length); in getSVGPathSegAtLengthFromSVGPathByteStream()