• Home
  • Raw
  • Download

Lines Matching refs:rrect

83                                                                const SkRRect& rrect) {  in Make()  argument
88 new CircularRRectEffect(edgeType, circularCornerFlags, rrect)); in Make()
92 const SkRRect& rrect) in CircularRRectEffect() argument
94 , fRRect(rrect) in CircularRRectEffect()
119 SkRRect rrect; in TestCreate() local
120 rrect.setRectXY(SkRect::MakeWH(w, h), r, r); in TestCreate()
125 fp = GrRRectEffect::Make(et, rrect, *d->caps()->shaderCaps()); in TestCreate()
295 const SkRRect& rrect = crre.getRRect(); 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()
417 const SkRRect& rrect) { in Make() argument
421 return std::unique_ptr<GrFragmentProcessor>(new EllipticalRRectEffect(edgeType, rrect)); in Make()
424 EllipticalRRectEffect::EllipticalRRectEffect(GrClipEdgeType edgeType, const SkRRect& rrect) in EllipticalRRectEffect() argument
426 , fRRect(rrect) in EllipticalRRectEffect()
454 SkRRect rrect; in TestCreate() local
466 rrect.setRectRadii(SkRect::MakeWH(w, h), r); in TestCreate()
468 rrect.setRectXY(SkRect::MakeWH(w, h), r[SkRRect::kUpperLeft_Corner].fX, in TestCreate()
474 fp = GrRRectEffect::Make(et, rrect, *d->caps()->shaderCaps()); in TestCreate()
602 const SkRRect& rrect = erre.getRRect(); in onSetData() local
605 if (rrect != fPrevRRect) { in onSetData()
606 SkRect rect = rrect.getBounds(); in onSetData()
607 const SkVector& r0 = rrect.radii(SkRRect::kUpperLeft_Corner); in onSetData()
627 const SkVector& r1 = rrect.radii(SkRRect::kLowerRight_Corner); in onSetData()
654 fPrevRRect = rrect; in onSetData()
672 const SkRRect& rrect, in Make() argument
674 if (rrect.isRect()) { in Make()
675 return GrConvexPolyEffect::Make(edgeType, rrect.getBounds()); in Make()
678 if (rrect.isOval()) { in Make()
679 return GrOvalEffect::Make(edgeType, rrect.getBounds(), caps); in Make()
682 if (rrect.isSimple()) { in Make()
683 if (SkRRectPriv::GetSimpleRadii(rrect).fX < kRadiusMin || in Make()
684 SkRRectPriv::GetSimpleRadii(rrect).fY < kRadiusMin) { in Make()
687 return GrConvexPolyEffect::Make(edgeType, rrect.getBounds()); in Make()
689 if (SkRRectPriv::GetSimpleRadii(rrect).fX == SkRRectPriv::GetSimpleRadii(rrect).fY) { in Make()
691 rrect); in Make()
693 return EllipticalRRectEffect::Make(edgeType, rrect); in Make()
697 if (rrect.isComplex() || rrect.isNinePatch()) { in Make()
705 radii[c] = rrect.radii((SkRRect::Corner)c); in Make()
745 SkTCopyOnFirstWrite<SkRRect> rr(rrect); in Make()
747 rr.writable()->setRectRadii(rrect.getBounds(), radii); in Make()
752 return GrConvexPolyEffect::Make(edgeType, rrect.getBounds()); in Make()
760 if (rrect.isNinePatch()) { in Make()
761 return EllipticalRRectEffect::Make(edgeType, rrect); in Make()