Lines Matching refs:strokeRec
445 SkStrokeRec strokeRec = parent.fStyle.strokeRec(); in GrShape() local
446 if (!parent.fStyle.applyPathEffectToPath(&this->path(), &strokeRec, *srcForPathEffect, in GrShape()
448 tmpParent.init(*srcForPathEffect, GrStyle(strokeRec, nullptr)); in GrShape()
454 SkASSERT(scale == strokeRec.getResScale()); in GrShape()
455 if (GrStyle::Apply::kPathEffectAndStrokeRec == apply && strokeRec.needToApply()) { in GrShape()
463 tmpParent.init(this->path(), GrStyle(strokeRec, nullptr)); in GrShape()
483 fStyle = GrStyle(strokeRec, nullptr); in GrShape()
581 if (this->style().strokeRec().getStyle() == SkStrokeRec::kStroke_Style || in attemptToSimplifyPath()
582 this->style().strokeRec().getStyle() == SkStrokeRec::kHairline_Style) { in attemptToSimplifyPath()
634 fStyle.strokeRec().getStyle() == SkStrokeRec::kStrokeAndFill_Style && in attemptToSimplifyRRect()
635 fStyle.strokeRec().getJoin() == SkPaint::kMiter_Join && in attemptToSimplifyRRect()
636 fStyle.strokeRec().getMiter() >= SK_ScalarSqrt2 && in attemptToSimplifyRRect()
638 SkScalar r = fStyle.strokeRec().getWidth() / 2; in attemptToSimplifyRRect()
661 if (fStyle.strokeRec().getStyle() == SkStrokeRec::kStrokeAndFill_Style) { in attemptToSimplifyLine()
663 SkStrokeRec rec = fStyle.strokeRec(); in attemptToSimplifyLine()
664 rec.setStrokeStyle(fStyle.strokeRec().getWidth(), false); in attemptToSimplifyLine()
671 if (fStyle.strokeRec().getStyle() == SkStrokeRec::kStroke_Style && in attemptToSimplifyLine()
697 fStyle.strokeRec().getCap() == SkPaint::kButt_Cap)) { in attemptToSimplifyArc()
726 SkASSERT(fStyle.strokeRec().getStyle() == SkStrokeRec::kStroke_Style); in attemptToSimplifyStrokedLineToRRect()
735 outset.fY = fStyle.strokeRec().getWidth() / 2.f; in attemptToSimplifyStrokedLineToRRect()
736 outset.fX = SkPaint::kButt_Cap == fStyle.strokeRec().getCap() ? 0.f : outset.fY; in attemptToSimplifyStrokedLineToRRect()
741 outset.fX = fStyle.strokeRec().getWidth() / 2.f; in attemptToSimplifyStrokedLineToRRect()
742 outset.fY = SkPaint::kButt_Cap == fStyle.strokeRec().getCap() ? 0.f : outset.fX; in attemptToSimplifyStrokedLineToRRect()
753 if (fStyle.strokeRec().getCap() == SkPaint::kRound_Cap) { in attemptToSimplifyStrokedLineToRRect()