• Home
  • Raw
  • Download

Lines Matching refs:fShape

216         if (e.fShape.isRect()) {  in analytic_clip_fp()
217 return GrFPSuccess(GrAARectEffect::Make(std::move(fp), edgeType, e.fShape.rect())); in analytic_clip_fp()
218 } else if (e.fShape.isRRect()) { in analytic_clip_fp()
219 return GrRRectEffect::Make(std::move(fp), edgeType, e.fShape.rrect(), caps); in analytic_clip_fp()
225 if (e.fShape.segmentMask() == SkPath::kLine_SegmentMask && e.fShape.convex()) { in analytic_clip_fp()
227 e.fShape.asPath(&devicePath); in analytic_clip_fp()
248 e.fShape.asPath(devicePath); in clip_atlas_fp()
310 SkASSERT(!e.fShape.inverted()); in draw_to_sw_mask()
314 GrShape inverted(e.fShape); in draw_to_sw_mask()
318 helper->drawShape(e.fShape, e.fLocalToDevice, SkRegion::kReplace_Op, e.fAA, alpha); in draw_to_sw_mask()
401 helper.drawShape(e.fShape, e.fLocalToDevice, op, e.fAA); in render_stencil_mask()
455 fShape.reset();
477 return shape_contains_rect(fShape, fLocalToDevice, fDeviceToLocal, in contains()
488 return shape_contains_rect(fShape, fLocalToDevice, fDeviceToLocal, in contains()
506 if (fShape.isRRect() && e.fShape.isRRect()) { in contains()
507 return SkRRectPriv::ConservativeIntersect(fShape.rrect(), e.fShape.rrect()) in contains()
508 == e.fShape.rrect(); in contains()
509 } else if (fShape.isPath() && e.fShape.isPath()) { in contains()
510 return fShape.path().getGenerationID() == e.fShape.path().getGenerationID() || in contains()
511 (fShape.path().getPoints(nullptr, 0) <= kMaxPathComparePoints && in contains()
512 fShape.path() == e.fShape.path()); in contains()
516 return shape_contains_rect(fShape, fLocalToDevice, fDeviceToLocal, in contains()
517 e.fShape.bounds(), e.fLocalToDevice, mixedAA); in contains()
524 if (fShape.inverted()) { in simplify()
526 fShape.setInverted(false); in simplify()
530 fShape.simplify(); in simplify()
531 SkASSERT(!fShape.inverted()); in simplify()
532 if (fShape.isEmpty()) { in simplify()
537 SkASSERT(!fShape.isPoint() && !fShape.isLine()); in simplify()
539 SkASSERT(!fShape.isArc()); in simplify()
541 SkRect outer = fLocalToDevice.mapRect(fShape.bounds()); in simplify()
544 fShape.reset(); in simplify()
551 if (forceAA && !(fShape.isRect() && fLocalToDevice.preservesAxisAlignment())) { in simplify()
560 if (fShape.isRect()) { in simplify()
563 fShape.rect() = outer; in simplify()
577 } else if (fShape.isRRect()) { in simplify()
581 if (fShape.rrect().transform(fLocalToDevice, &src)) { in simplify()
582 fShape.rrect() = src; in simplify()
586 SkRect inner = SkRRectPriv::InnerBounds(fShape.rrect()); in simplify()
598 fShape.reset(); in simplify()
602 SkASSERT(fShape.isEmpty() || (!fOuterBounds.isEmpty() && deviceBounds.contains(fOuterBounds))); in simplify()
603 SkASSERT(fShape.isEmpty() || fInnerBounds.isEmpty() || fOuterBounds.contains(fInnerBounds)); in simplify()
617 if (fShape.isRect() && other.fShape.isRect()) { in combine()
620 if (GrClip::IsPixelAligned(fShape.rect())) { in combine()
624 } else if (!GrClip::IsPixelAligned(other.fShape.rect())) { in combine()
635 if (!fShape.rect().intersect(other.fShape.rect())) { in combine()
637 this->fShape.reset(); in combine()
643 } else if ((fShape.isRect() || fShape.isRRect()) && in combine()
644 (other.fShape.isRect() || other.fShape.isRRect())) { in combine()
648 SkRRect a = fShape.isRect() ? SkRRect::MakeRect(fShape.rect()) : fShape.rrect(); in combine()
649 SkRRect b = other.fShape.isRect() ? SkRRect::MakeRect(other.fShape.rect()) in combine()
650 : other.fShape.rrect(); in combine()
657 fShape.setRect(joined.rect()); in combine()
659 fShape.setRRect(joined); in combine()
664 fShape.reset(); in combine()
722 switch (fShape.type()) { in clipType()