Lines Matching refs:SkResourceCache
28 #include "src/core/SkResourceCache.h"
221 * This manages a set of tessellations for a given shape in the cache. Because SkResourceCache
316 * A record of shadow vertices stored in SkResourceCache of CachedTessellations for a particular
319 class CachedTessellationsRec : public SkResourceCache::Rec {
321 CachedTessellationsRec(const SkResourceCache::Key& key,
329 return *reinterpret_cast<SkResourceCache::Key*>(fKey.get());
352 * mesh then we inform SkResourceCache to destroy the Rec and we return the CachedTessellations
366 // and create a new CachedTessellationsRec and insert it into SkResourceCache.
373 * Function called by SkResourceCache when a matching cache key is found. The FACTORY and matrix of
378 bool FindVisitor(const SkResourceCache::Rec& baseRec, void* ctx) {
425 // This creates a domain of keys in SkResourceCache used by this file.
431 ShadowInvalidator(const SkResourceCache::Key& key) {
437 const SkResourceCache::Key& getKey() const {
438 return *reinterpret_cast<SkResourceCache::Key*>(fKey.get());
442 static bool FindVisitor(const SkResourceCache::Rec&, void*) {
447 SkResourceCache::Find(this->getKey(), ShadowInvalidator::FindVisitor, nullptr);
455 * they are first found in SkResourceCache.
464 SkResourceCache::Key* key = nullptr;
468 keyStorage.reset(keyDataBytes + sizeof(SkResourceCache::Key));
469 key = new (keyStorage.begin()) SkResourceCache::Key();
472 SkResourceCache::Find(*key, FindVisitor<FACTORY>, &context);
496 SkResourceCache::Add(rec);