Lines Matching refs:stroke
33 // supported when using an AA stroke.
34 inline bool allowed_stroke(const SkStrokeRec& stroke, GrAA aa, bool* isMiter) {
35 SkASSERT(stroke.getStyle() == SkStrokeRec::kStroke_Style ||
36 stroke.getStyle() == SkStrokeRec::kHairline_Style);
38 if (!stroke.getWidth()) {
42 if (stroke.getJoin() == SkPaint::kBevel_Join) {
46 if (stroke.getJoin() == SkPaint::kMiter_Join) {
47 *isMiter = stroke.getMiter() >= SK_ScalarSqrt2;
109 const SkStrokeRec& stroke,
112 if (!allowed_stroke(stroke, GrAA::kNo, &isMiter)) {
119 if (stroke.getStyle() == SkStrokeRec::kHairline_Style && aaType != GrAAType::kMSAA) {
124 stroke, aaType);
129 const SkStrokeRec& stroke, GrAAType aaType)
137 fStrokeWidth = stroke.getWidth();
287 // The inner coverage values will be equal if the horizontal and vertical stroke widths are
289 // and vertical stroke widths are both greater than 1 (in which case innerCoverage will always
326 // Clip our draw rect 1 full stroke width plus bloat outside the viewport. This avoids
341 // If we have a degenerate stroking rect(ie the stroke is larger than inner rect) then we
357 // For bevel-stroke, use 2 SkRect instances(devOutside and devOutsideAssist)
359 // edge, while vertex number of inner edge is 4, the same as miter-stroke.
397 // TODO support AA rotated stroke rects by copying around view matrices
442 const SkStrokeRec& stroke) {
448 if (!allowed_stroke(stroke, GrAA::kYes, &isMiter)) {
459 stroke.getWidth(),
482 // The outer polygon of the bevel stroke is an octagon specified by the points of a
704 * As in miter-stroke, index = a + b, and a is the current index, b is the shift
710 * Following comes a bevel-stroke rect and its indices:
744 // Draw the stroke, from outer edge to inner edge, shift is 8.
807 // coverage, one on the exterior of the stroke and the other on the interior.
838 // How much do we outset away from the interior side of the stroke (toward the center)?
865 // Exterior outset rect (away from stroke).
877 // Exterior inset rect (toward stroke).
890 // Interior inset rect (toward stroke).
895 // Interior outset rect (away from stroke, toward center of rect).
943 const SkStrokeRec& stroke) {
946 return AAStrokeRectOp::Make(context, std::move(paint), viewMatrix, rect, stroke);
948 return NonAAStrokeRectOp::Make(context, std::move(paint), viewMatrix, rect, stroke, aaType);