Lines Matching refs:blob
57 void remove(GrTextBlob* blob) { in remove() argument
58 auto id = GrTextBlob::GetKey(*blob).fUniqueID; in remove()
62 fCurrentSize -= blob->size(); in remove()
63 fBlobList.remove(blob); in remove()
64 idEntry->removeBlob(blob); in remove()
70 void makeMRU(GrTextBlob* blob) { in makeMRU() argument
71 if (fBlobList.head() == blob) { in makeMRU()
75 fBlobList.remove(blob); in makeMRU()
76 fBlobList.addToHead(blob); in makeMRU()
82 static void BlobGlyphCount(int* glyphCount, int* runCount, const SkTextBlob* blob) { in BlobGlyphCount() argument
83 SkTextBlobRunIterator itCounter(blob); in BlobGlyphCount()
119 void addBlob(sk_sp<GrTextBlob> blob) { in addBlob()
120 SkASSERT(blob); in addBlob()
121 SkASSERT(GrTextBlob::GetKey(*blob).fUniqueID == fID); in addBlob()
122 SkASSERT(!this->find(GrTextBlob::GetKey(*blob))); in addBlob()
124 fBlobs.emplace_back(std::move(blob)); in addBlob()
127 void removeBlob(GrTextBlob* blob) { in removeBlob()
128 SkASSERT(blob); in removeBlob()
129 SkASSERT(GrTextBlob::GetKey(*blob).fUniqueID == fID); in removeBlob()
131 auto index = this->findBlobIndex(GrTextBlob::GetKey(*blob)); in removeBlob()
157 void add(sk_sp<GrTextBlob> blob) { in add() argument
158 auto id = GrTextBlob::GetKey(*blob).fUniqueID; in add()
165 GrTextBlob* rawBlobPtr = blob.get(); in add()
167 fCurrentSize += blob->size(); in add()
168 idEntry->addBlob(std::move(blob)); in add()
173 void checkPurge(GrTextBlob* blob = nullptr);