Lines Matching refs:rec
127 const auto* rec = this->currentSaveRec(); in restore() local
128 if (!rec) { in restore()
134 bool preserveMatrix = !(rec->saveFlags & SaveFlags::Matrix); in restore()
135 bool preserveClip = !(rec->saveFlags & SaveFlags::Clip); in restore()
142 const size_t clipIndex = rec->clipIndex; in restore()
175 const SkCanvas::SaveLayerRec rec(&bounds, paint, layerFlags(flags)); in saveLayer() local
177 return mCanvas->saveLayer(rec); in saveLayer()
248 const SaveRec* rec = mSaveStack ? static_cast<const SaveRec*>(mSaveStack->back()) : nullptr; in currentSaveRec() local
250 SkASSERT(!rec || currentSaveCount >= rec->saveCount); in currentSaveRec()
252 return (rec && rec->saveCount == currentSaveCount) ? rec : nullptr; in currentSaveRec()
275 SaveRec* rec = static_cast<SaveRec*>(mSaveStack->push_back()); in recordPartialSave() local
276 rec->saveCount = mCanvas->getSaveCount(); in recordPartialSave()
277 rec->saveFlags = flags; in recordPartialSave()
278 rec->clipIndex = mClipStack.size(); in recordPartialSave()
285 const SaveRec* rec = this->currentSaveRec(); in recordClip() local
286 if (rec && !(rec->saveFlags & SaveFlags::Clip)) { in recordClip()
309 const auto* rec = this->currentSaveRec(); in applyPersistentClips() local
310 if (!rec || (rec->saveFlags & SaveFlags::Clip)) { in applyPersistentClips()
730 auto rec = builder.allocRunRSXform(font, N); in drawLayoutOnPath() local
731 SkRSXform* xform = (SkRSXform*)rec.pos; in drawLayoutOnPath()
732 uint16_t* glyphs = rec.glyphs; in drawLayoutOnPath()