MCPcopy Create free account
hub / github.com/SOUI2/soui / SkDEBUGCODE

Function SkDEBUGCODE

third-part/skia/src/gpu/GrLayerCache.cpp:315–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313void GrLayerCache::purge(uint32_t pictureID) {
314
315 SkDEBUGCODE(GrAutoValidateCache avc(this);)
316
317 // We need to find all the layers associated with 'picture' and remove them.
318 SkTDArray<GrCachedLayer*> toBeRemoved;
319
320 SkTDynamicHash<GrCachedLayer, GrCachedLayer::Key>::Iter iter(&fLayerHash);
321 for (; !iter.done(); ++iter) {
322 if (pictureID == (*iter).pictureID()) {
323 *toBeRemoved.append() = &(*iter);
324 }
325 }
326
327 for (int i = 0; i < toBeRemoved.count(); ++i) {
328 this->unlock(toBeRemoved[i]);

Callers 15

GrAllocPoolMethod · 0.70
resetMethod · 0.70
allocMethod · 0.70
releaseMethod · 0.70
~GrDrawTargetMethod · 0.70
map_flags_to_stringFunction · 0.70
GrDrawStateMethod · 0.70
~GrIORefMethod · 0.70
lockMethod · 0.70
GrDrawStateMethod · 0.70
setMethod · 0.70
restoreMethod · 0.70

Calls 2

pictureIDMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected