Lines Matching refs:rrect
81 uint32_t circularCornerFlags, const SkRRect& rrect) { in Make() argument
86 new CircularRRectEffect(std::move(inputFP), edgeType, circularCornerFlags, rrect))); in Make()
92 const SkRRect& rrect) in CircularRRectEffect() argument
96 , fRRect(rrect) in CircularRRectEffect()
127 SkRRect rrect; in TestCreate() local
128 rrect.setRectXY(SkRect::MakeWH(w, h), r, r); in TestCreate()
134 std::tie(success, fp) = GrRRectEffect::Make(std::move(fp), et, rrect, in TestCreate()
295 const SkRRect& rrect = crre.fRRect; in onSetData() local
296 if (rrect != fPrevRRect) { in onSetData()
297 SkRect rect = rrect.getBounds(); in onSetData()
301 SkASSERT(SkRRectPriv::IsSimpleCircular(rrect)); in onSetData()
302 radius = SkRRectPriv::GetSimpleRadii(rrect).fX; in onSetData()
307 radius = rrect.radii(SkRRect::kUpperLeft_Corner).fX; in onSetData()
314 radius = rrect.radii(SkRRect::kUpperRight_Corner).fX; in onSetData()
321 radius = rrect.radii(SkRRect::kLowerRight_Corner).fX; in onSetData()
328 radius = rrect.radii(SkRRect::kLowerLeft_Corner).fX; in onSetData()
335 radius = rrect.radii(SkRRect::kUpperLeft_Corner).fX; in onSetData()
342 radius = rrect.radii(SkRRect::kUpperLeft_Corner).fX; in onSetData()
349 radius = rrect.radii(SkRRect::kUpperRight_Corner).fX; in onSetData()
356 radius = rrect.radii(SkRRect::kLowerLeft_Corner).fX; in onSetData()
368 fPrevRRect = rrect; in onSetData()
418 const SkRRect& rrect) { in Make() argument
423 new EllipticalRRectEffect(std::move(inputFP), edgeType, rrect))); in Make()
428 const SkRRect& rrect) in EllipticalRRectEffect() argument
432 , fRRect(rrect) in EllipticalRRectEffect()
467 SkRRect rrect; in TestCreate() local
479 rrect.setRectRadii(SkRect::MakeWH(w, h), r); in TestCreate()
481 rrect.setRectXY(SkRect::MakeWH(w, h), r[SkRRect::kUpperLeft_Corner].fX, in TestCreate()
488 std::tie(success, fp) = GrRRectEffect::Make(std::move(fp), et, rrect, in TestCreate()
608 const SkRRect& rrect = erre.fRRect; in onSetData() local
611 if (rrect != fPrevRRect) { in onSetData()
612 SkRect rect = rrect.getBounds(); in onSetData()
613 const SkVector& r0 = rrect.radii(SkRRect::kUpperLeft_Corner); in onSetData()
616 switch (rrect.getType()) { in onSetData()
633 const SkVector& r1 = rrect.radii(SkRRect::kLowerRight_Corner); in onSetData()
660 fPrevRRect = rrect; in onSetData()
678 GrClipEdgeType edgeType, const SkRRect& rrect, in Make() argument
680 if (rrect.isRect()) { in Make()
681 auto fp = GrFragmentProcessor::Rect(std::move(inputFP), edgeType, rrect.getBounds()); in Make()
685 if (rrect.isOval()) { in Make()
686 return GrOvalEffect::Make(std::move(inputFP), edgeType, rrect.getBounds(), caps); in Make()
689 if (rrect.isSimple()) { in Make()
690 if (SkRRectPriv::GetSimpleRadii(rrect).fX < kRadiusMin || in Make()
691 SkRRectPriv::GetSimpleRadii(rrect).fY < kRadiusMin) { in Make()
694 auto fp = GrFragmentProcessor::Rect(std::move(inputFP), edgeType, rrect.getBounds()); in Make()
697 if (SkRRectPriv::GetSimpleRadii(rrect).fX == SkRRectPriv::GetSimpleRadii(rrect).fY) { in Make()
699 CircularRRectEffect::kAll_CornerFlags, rrect); in Make()
701 return EllipticalRRectEffect::Make(std::move(inputFP), edgeType, rrect); in Make()
705 if (rrect.isComplex() || rrect.isNinePatch()) { in Make()
713 radii[c] = rrect.radii((SkRRect::Corner)c); in Make()
754 SkTCopyOnFirstWrite<SkRRect> rr(rrect); in Make()
756 rr.writable()->setRectRadii(rrect.getBounds(), radii); in Make()
762 GrFragmentProcessor::Rect(std::move(inputFP), edgeType, rrect.getBounds()); in Make()
766 const SkVector ul = rrect.radii(SkRRect::kUpperLeft_Corner); in Make()
767 const SkVector lr = rrect.radii(SkRRect::kLowerRight_Corner); in Make()
768 if (rrect.isNinePatch() && in Make()
773 return EllipticalRRectEffect::Make(std::move(inputFP), edgeType, rrect); in Make()