Lines Matching refs:fKey
30 return fKey[kHash_MetaDataIdx]; in hash()
47 fKey.reset(kMetaDataCnt); in reset()
48 fKey[kHash_MetaDataIdx] = 0; in reset()
49 fKey[kDomainAndSize_MetaDataIdx] = kInvalidDomain; in reset()
53 return this->hash() == that.hash() && 0 == memcmp(&fKey[kHash_MetaDataIdx + 1],
54 &that.fKey[kHash_MetaDataIdx + 1],
65 fKey.reset(SkToInt(bytes / sizeof(uint32_t)));
66 memcpy(fKey.get(), that.fKey.get(), bytes);
75 uint32_t domain() const { return fKey[kDomainAndSize_MetaDataIdx] & 0xffff; } in domain()
83 return &fKey[kMetaDataCnt]; in data()
95 SkDebugf("%d ", fKey[SkTo<int>(i)]); in dump()
105 Builder(GrResourceKey* key, uint32_t domain, int data32Count) : fKey(key) { in Builder()
108 key->fKey.reset(kMetaDataCnt + data32Count); in Builder()
112 key->fKey[kDomainAndSize_MetaDataIdx] = domain | (size << 16); in Builder()
118 if (nullptr == fKey) { in finish()
122 uint32_t* hash = &fKey->fKey[kHash_MetaDataIdx]; in finish()
123 *hash = GrResourceKeyHash(hash + 1, fKey->internalSize() - sizeof(uint32_t)); in finish()
124 fKey->validate(); in finish()
125 fKey = nullptr; in finish()
129 SkASSERT(fKey);
130 SkDEBUGCODE(size_t dataCount = fKey->internalSize() / sizeof(uint32_t) - kMetaDataCnt;)
132 return fKey->fKey[kMetaDataCnt + dataIdx];
136 GrResourceKey* fKey;
149 size_t internalSize() const { return fKey[kDomainAndSize_MetaDataIdx] >> 16; } in internalSize()
153 SkASSERT(fKey[kHash_MetaDataIdx] == in validate()
154 GrResourceKeyHash(&fKey[kHash_MetaDataIdx] + 1, in validate()
162 SkAutoSTMalloc<kMetaDataCnt + 5, uint32_t> fKey; variable
336 : fKey(key), fContextID(contextUniqueID) { in GrUniqueKeyInvalidatedMessage()
344 const GrUniqueKey& key() const { return fKey; } in key()
348 GrUniqueKey fKey;