Lines Matching defs:save
762 // For the same save record, a larger mask will have the same or more elements
848 // from its starting index to restoreCount - 1. Elements from the old save record have
900 // And we shouldn't be adding an element if we have a deferred save
1001 // becomes the save record's new fLastValidIndex value.
1014 // index of this save record, since that will result in the same restoration behavior later.
1086 // The aggregate state of the save record mirrors the element
1105 // This invalidates all older elements that are owned by save records lower in the clip stack.
1116 // encountered element stack depth was 5 and the max save depth was 6. Using an increment of 8 for
1144 // Start with a save record that is wide open
1159 void ClipStack::save() {
1168 // This was just a deferred save being undone, so the record doesn't need to be removed yet
1172 // When we remove a save record, we delete all elements >= its starting index and any masks
1180 // Restore any remaining elements that were only invalidated by the now-removed save record.
1512 // Must undefer the save to get a new record.
1532 SaveRecord& save = this->writableSaveRecord(&wasDeferred);
1535 save.removeElements(&fElements);
1536 save.invalidateMasks(fProxyProvider, &fMasks);
1539 save.reset(fDeviceBounds);
1557 // An empty op means do nothing (for difference), or close the save record, so we try and detect
1558 // that early before doing additional unnecessary save record allocation.
1564 // else we will make the clip empty, but we need a new save record to record that change
1569 SaveRecord& save = this->writableSaveRecord(&wasDeferred);
1570 SkDEBUGCODE(uint32_t oldGenID = save.genID();)
1572 if (!save.addElement(std::move(element), &fElements)) {
1574 // We made a new save record, but ended up not adding an element to the stack.
1575 // So instead of keeping an empty save record around, pop it off and restore the counter
1580 // Should not have changed gen ID if the element and save were not modified
1581 SkASSERT(oldGenID == save.genID());
1585 SkASSERT(oldGenID != save.genID() && save.genID() != kInvalidGenID);
1587 // We modified an active save record so any old masks it had can be invalidated
1588 save.invalidateMasks(fProxyProvider, &fMasks);
1601 // Check the existing masks from this save record for compatibility