• Home
  • Raw
  • Download

Lines Matching refs:fStyle

13     fStyle = that.fStyle;  in operator =()
171 if (this->isEmpty() && !fStyle.hasNonDashPathEffect()) { in styledBounds()
176 fStyle.adjustBounds(&bounds, this->bounds()); in styledBounds()
337 int styleCnt = GrStyle::KeySize(parent.fStyle, apply, styleKeyFlags); in setInheritedKey()
354 GrStyle::WriteKey(fInheritedKey.get() + parentCnt, parent.fStyle, apply, scale, in setInheritedKey()
383 result.fStyle = style; in MakeArc()
388 GrShape::GrShape(const GrShape& that) : fStyle(that.fStyle) { in GrShape()
429 SkPathEffect* pe = parent.fStyle.pathEffect(); in GrShape()
445 SkStrokeRec strokeRec = parent.fStyle.strokeRec(); in GrShape()
446 if (!parent.fStyle.applyPathEffectToPath(&this->path(), &strokeRec, *srcForPathEffect, in GrShape()
480 fStyle.resetToInitStyle(fillOrHairline); in GrShape()
483 fStyle = GrStyle(strokeRec, nullptr); in GrShape()
494 SkASSERT(parent.fStyle.applies()); in GrShape()
495 SkASSERT(!parent.fStyle.pathEffect()); in GrShape()
496 SkAssertResult(parent.fStyle.applyToPath(&this->path(), &fillOrHairline, *srcForParentStyle, in GrShape()
498 fStyle.resetToInitStyle(fillOrHairline); in GrShape()
609 if (fStyle.isSimpleFill()) { in attemptToSimplifyRRect()
611 fStyle = GrStyle::SimpleFill(); in attemptToSimplifyRRect()
617 if (fStyle.isDashed() && !fRRectData.fRRect.width() && !fRRectData.fRRect.height()) { in attemptToSimplifyRRect()
620 fStyle = GrStyle::SimpleFill(); in attemptToSimplifyRRect()
627 } else if (fStyle.isDashed()) { in attemptToSimplifyRRect()
633 if (!fStyle.hasPathEffect() && in attemptToSimplifyRRect()
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()
640 fStyle = GrStyle::SimpleFill(); in attemptToSimplifyRRect()
647 if (fStyle.isDashed()) { in attemptToSimplifyLine()
649 for (int i = 1; i < fStyle.dashIntervalCnt() && allOffsZero; i += 2) { in attemptToSimplifyLine()
650 allOffsZero = !fStyle.dashIntervals()[i]; in attemptToSimplifyLine()
658 } else if (fStyle.hasPathEffect()) { in attemptToSimplifyLine()
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()
665 fStyle = GrStyle(rec, nullptr); in attemptToSimplifyLine()
667 if (fStyle.isSimpleFill()) { in attemptToSimplifyLine()
671 if (fStyle.strokeRec().getStyle() == SkStrokeRec::kStroke_Style && in attemptToSimplifyLine()
696 if (fStyle.isSimpleFill() || (!fStyle.pathEffect() && !fArcData.fUseCenter && in attemptToSimplifyArc()
697 fStyle.strokeRec().getCap() == SkPaint::kButt_Cap)) { in attemptToSimplifyArc()
708 if (!fStyle.pathEffect()) { 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()
749 fStyle = GrStyle::SimpleFill(); in attemptToSimplifyStrokedLineToRRect()
753 if (fStyle.strokeRec().getCap() == SkPaint::kRound_Cap) { in attemptToSimplifyStrokedLineToRRect()
759 bool inverted = fLineData.fInverted && !fStyle.hasPathEffect(); in attemptToSimplifyStrokedLineToRRect()
765 fStyle = GrStyle::SimpleFill(); in attemptToSimplifyStrokedLineToRRect()