Lines Matching refs:current
451 void ClipStack::RawElement::markInvalid(const SaveRecord& current) {
453 fInvalidatedByIndex = current.firstActiveElementIndex();
456 void ClipStack::RawElement::restoreValid(const SaveRecord& current) {
457 if (current.firstActiveElementIndex() < fInvalidatedByIndex) {
598 bool ClipStack::RawElement::combine(const RawElement& other, const SaveRecord& current) {
630 this->markInvalid(current);
657 this->markInvalid(current);
677 void ClipStack::RawElement::updateForElement(RawElement* added, const SaveRecord& current) {
687 this->markInvalid(current);
688 added->markInvalid(current);
693 added->markInvalid(current);
698 this->markInvalid(current);
704 if (added->combine(*this, current)) {
706 this->markInvalid(current);
742 ClipStack::Mask::Mask(const SaveRecord& current, const SkIRect& drawBounds)
744 , fGenID(current.genID()) {
758 SkDEBUGCODE(fOwner = ¤t;)
761 bool ClipStack::Mask::appliesToDraw(const SaveRecord& current, const SkIRect& drawBounds) const {
764 SkASSERT(fGenID != current.genID() || ¤t == fOwner);
765 return fGenID == current.genID() && fBounds.contains(drawBounds);
1166 SaveRecord& current = fSaves.back();
1167 if (current.popSave()) {
1174 current.removeElements(&fElements);
1177 current.invalidateMasks(fProxyProvider, &fMasks);
1185 const SaveRecord& current = this->currentSaveRecord();
1186 if (current.state() == ClipState::kEmpty) {
1188 } else if (current.state() == ClipState::kWideOpen) {
1191 if (current.op() == SkClipOp::kDifference) {
1194 return subtract(fDeviceBounds, current.innerBounds(), /* exact */ true);
1196 SkASSERT(fDeviceBounds.contains(current.outerBounds()));
1197 return current.outerBounds();
1217 // Given argument order, 'A' == current clip, 'B' == draw
1506 SaveRecord& current = fSaves.back();
1507 if (current.canBeUpdated()) {
1510 return current;
1513 SkAssertResult(current.popSave());
1515 return fSaves.emplace_back(current, fMasks.count(), fElements.count());
1594 const SaveRecord& current, const SkIRect& bounds,
1603 if (m.genID() != current.genID()) {
1606 if (m.appliesToDraw(current, bounds)) {
1625 Mask& mask = masks->emplace_back(current, bounds);