Lines Matching defs:prior
375 // prior clip. This could be wildly incorrect if the
378 // size of the prior bound (e.g., if the second clip
379 // exactly matched the bottom half of the prior clip).
420 void SkClipStack::Element::updateBoundAndGenID(const Element* prior) {
434 (SkClipOp::kIntersect == fOp && nullptr == prior) ||
435 (SkClipOp::kIntersect == fOp && prior->fIsIntersectionOfRects &&
436 prior->rectRectIntersectAllowed(this->getDeviceSpaceRect(), fDoAA))) {
471 if (nullptr == prior) {
472 // no prior clip means the entire plane is writable
476 prevFinite = prior->fFiniteBound;
477 prevType = prior->fFiniteBoundType;
493 // Now integrate with clip with the prior clips
507 } // else Replace just ignores everything prior and should already have filled in bounds.
700 Element* prior = (Element*) iter.prev();
702 if (prior) {
705 prior = (Element*) fDeque.back();
706 } else if (prior->canBeIntersectedInPlace(fSaveCount, element.getOp())) {
707 switch (prior->fDeviceSpaceType) {
709 SkDEBUGCODE(prior->checkEmpty();)
713 prior->fShader = SkShaders::Blend(SkBlendMode::kSrcIn,
714 element.fShader, prior->fShader);
716 prior->updateBoundAndGenID(priorPrior);
722 if (prior->rectRectIntersectAllowed(element.getDeviceSpaceRect(),
725 if (!isectRect.intersect(prior->getDeviceSpaceRect(),
727 prior->setEmpty();
731 prior->fDeviceSpaceRRect.setRect(isectRect);
732 prior->fDoAA = element.isAA();
734 prior->updateBoundAndGenID(priorPrior);
741 if (!SkRect::Intersects(prior->getBounds(), element.getBounds())) {
742 prior->setEmpty();
750 newElement->updateBoundAndGenID(prior);
917 while (const Element* prior = (const Element*)iter.prev()) {
919 if ((prior->getOp() != SkClipOp::kIntersect && !prior->isReplaceOp()) ||
920 !prior->contains(backBounds)) {
923 if (prior->isReplaceOp()) {