Lines Matching refs:stroke

31 // will just add enough additional segments to handle a worst-case 180 degree stroke.)
52 // Updates the dynamic stroke state that we will write out with each instance.
53 void updateDynamicStroke(const SkStrokeRec& stroke) {
56 fDynamicStroke.set(stroke);
116 // point. The stroke iterator tells us the new value to use for the previous control point.
122 // Draws a circle whose diameter is equal to the stroke width. We emit circles at cusp points
126 // The shader interprets an empty stroke + empty join as a special case that denotes a
127 // circle, or 180-degree point stroke.
135 // We deferred the first stroke because we didn't know the previous control point to use
173 // this stroke until the end.
200 // Set fLastControlPoint to the next stroke's p0 (which will be equal to the final point of
201 // this stroke). This has the effect of disabling the next stroke's join.
211 // We can't write out the first stroke until we know the previous control point for its join.
247 // Over-allocate enough patches for each stroke to chop once, and for 8 extra caps. Since we
248 // have to chop at inflections, points of 180 degree rotation, and anywhere a stroke requires
263 const SkStrokeRec& stroke = pathStrokeList->fStroke;
265 stroke.getWidth());
268 maxEdgesInJoin = worst_case_edges_in_join(stroke.getJoin(), numRadialSegmentsPerRadian);
273 // have dynamic stroke.
277 const SkStrokeRec& stroke = pathStroke->fStroke;
283 worst_case_edges_in_join(stroke.getJoin(), numRadialSegmentsPerRadian),
287 instanceWriter.updateDynamicStroke(stroke);
302 // Round cap or else an empty stroke that is specified to be drawn as a circle.
375 // The maximum rotation we can have in a stroke is 180 degrees (SK_ScalarPI radians).
383 // Now calculate the maximum number of edges we will need in the stroke portion of the instance.
384 // The first and last edges in a stroke are shared by both the parametric and radial sets of
393 // So the total number of combined edges in the stroke is:
400 // Each triangle strip has two sections: It starts with a join then transitions to a stroke. The
401 // number of edges in an instance is the sum of edges from the join and stroke sections both.
402 // NOTE: The final join edge and the first stroke edge are co-located, however we still need to
403 // emit both because the join's edge is half-width and the stroke's is full-width.