Lines Matching refs:strokeRec
360 SkStrokeRec strokeRec = parent.fStyle.strokeRec(); in GrStyledShape() local
361 if (!parent.fStyle.applyPathEffectToPath(&fShape.path(), &strokeRec, *srcForPathEffect, in GrStyledShape()
363 tmpParent.init(*srcForPathEffect, GrStyle(strokeRec, nullptr)); in GrStyledShape()
369 SkASSERT(scale == strokeRec.getResScale()); in GrStyledShape()
370 if (GrStyle::Apply::kPathEffectAndStrokeRec == apply && strokeRec.needToApply()) { in GrStyledShape()
378 tmpParent.init(fShape.path(), GrStyle(strokeRec, nullptr)); in GrStyledShape()
398 fStyle = GrStyle(strokeRec, nullptr); in GrStyledShape()
591 if (!fShape.isArc() || fStyle.strokeRec().getCap() == SkPaint::kButt_Cap) { in simplify()
611 (fStyle.strokeRec().getStyle() == SkStrokeRec::kStroke_Style || in simplify()
612 fStyle.strokeRec().getStyle() == SkStrokeRec::kHairline_Style || in simplify()
636 fStyle.strokeRec().getStyle() == SkStrokeRec::kStrokeAndFill_Style) { in simplifyStroke()
637 if (fStyle.strokeRec().getJoin() == SkPaint::kBevel_Join || in simplifyStroke()
638 (fStyle.strokeRec().getJoin() == SkPaint::kMiter_Join && in simplifyStroke()
639 fStyle.strokeRec().getMiter() < SK_ScalarSqrt2)) { in simplifyStroke()
644 SkScalar r = fStyle.strokeRec().getWidth() / 2; in simplifyStroke()
646 if (fStyle.strokeRec().getJoin() == SkPaint::kRound_Join) { in simplifyStroke()
659 fStyle.strokeRec().isHairlineStyle()) { in simplifyStroke()
687 fStyle = GrStyle(fStyle.strokeRec(), nullptr); in simplifyStroke()
701 } else if (fStyle.strokeRec().getStyle() == SkStrokeRec::kStrokeAndFill_Style) { in simplifyStroke()
703 SkStrokeRec rec = fStyle.strokeRec(); in simplifyStroke()
704 rec.setStrokeStyle(fStyle.strokeRec().getWidth(), false); in simplifyStroke()
714 if (fShape.isLine() && fStyle.strokeRec().getJoin() == SkPaint::kRound_Join) { in simplifyStroke()
719 } else if (fShape.isPoint() && fStyle.strokeRec().getJoin() == SkPaint::kMiter_Join && in simplifyStroke()
736 if (cap != fStyle.strokeRec().getCap() || in simplifyStroke()
737 SkPaint::kDefault_Join != fStyle.strokeRec().getJoin()) { in simplifyStroke()
738 SkStrokeRec rec = fStyle.strokeRec(); in simplifyStroke()
739 rec.setStrokeParams(cap, SkPaint::kDefault_Join, fStyle.strokeRec().getMiter()); in simplifyStroke()
748 if (fStyle.strokeRec().getCap() == SkPaint::kButt_Cap) { in simplifyStroke()
751 SkScalar w = fStyle.strokeRec().getWidth() / 2.f; in simplifyStroke()
755 if (fStyle.strokeRec().getCap() == SkPaint::kRound_Cap) { in simplifyStroke()
770 outset.fY = fStyle.strokeRec().getWidth() / 2.f; in simplifyStroke()
771 outset.fX = SkPaint::kButt_Cap == fStyle.strokeRec().getCap() ? 0.f : outset.fY; in simplifyStroke()
776 outset.fX = fStyle.strokeRec().getWidth() / 2.f; in simplifyStroke()
777 outset.fY = SkPaint::kButt_Cap == fStyle.strokeRec().getCap() ? 0.f : outset.fX; in simplifyStroke()
787 } else if (fStyle.strokeRec().getCap() == SkPaint::kRound_Cap) { in simplifyStroke()