Lines Matching refs:GrUniqueKey
239 class GrUniqueKey : public GrResourceKey {
249 GrUniqueKey() : fTag(nullptr) {}
251 GrUniqueKey(const GrUniqueKey& that) { *this = that; }
258 GrUniqueKey& operator=(const GrUniqueKey& that) {
265 bool operator==(const GrUniqueKey& that) const { return this->INHERITED::operator==(that); }
266 bool operator!=(const GrUniqueKey& that) const { return !(*this == that); }
283 Builder(GrUniqueKey* key, Domain type, int data32Count, const char* tag = nullptr)
289 Builder(GrUniqueKey* key, const GrUniqueKey& innerKey, Domain domain, int extraData32Cnt,
302 static int Data32CntForInnerKey(const GrUniqueKey& innerKey) {
314 * It is common to need a frequently reused GrUniqueKey where the only requirement is that the key
324 static SkAlignedSTStorage<1, GrUniqueKey> name##_storage; \
326 static const GrUniqueKey& name = *reinterpret_cast<GrUniqueKey*>(name##_storage.get())
328 static inline void gr_init_static_unique_key_once(SkAlignedSTStorage<1, GrUniqueKey>* keyStorage) {
329 GrUniqueKey* key = new (keyStorage->get()) GrUniqueKey;
330 GrUniqueKey::Builder builder(key, GrUniqueKey::GenerateDomain(), 0);
337 GrUniqueKeyInvalidatedMessage(const GrUniqueKey& key, uint32_t contextUniqueID,
347 const GrUniqueKey& key() const { return fKey; }
352 GrUniqueKey fKey;