Lines Matching defs:SymbolKey
119 [&fn](const SymbolKey& key, const Symbol* symbol) { fn(key.fName, symbol); });
146 struct SymbolKey {
150 bool operator==(const SymbolKey& that) const { return fName == that.fName; }
151 bool operator!=(const SymbolKey& that) const { return fName != that.fName; }
153 uint32_t operator()(const SymbolKey& key) const { return key.fHash; }
157 static SymbolKey MakeSymbolKey(skstd::string_view name) {
158 return SymbolKey{name, SkOpts::hash_fn(name.data(), name.size(), 0)};
161 const Symbol* lookup(SymbolTable* writableSymbolTable, const SymbolKey& key);
168 SkTHashMap<SymbolKey, const Symbol*, SymbolKey::Hash> fSymbols;