Home
last modified time | relevance | path

Searched refs:SymbolKey (Results 1 – 2 of 2) sorted by relevance

/third_party/skia/src/sksl/ir/
DSkSLSymbolTable.h119 [&fn](const SymbolKey& key, const Symbol* symbol) { fn(key.fName, symbol); }); in foreach()
146 struct SymbolKey { struct
150 bool operator==(const SymbolKey& that) const { return fName == that.fName; } argument
151 bool operator!=(const SymbolKey& that) const { return fName != that.fName; }
153 uint32_t operator()(const SymbolKey& key) const { return key.fHash; } in operator() argument
157 static SymbolKey MakeSymbolKey(skstd::string_view name) { in MakeSymbolKey()
158 return SymbolKey{name, SkOpts::hash_fn(name.data(), name.size(), 0)}; in MakeSymbolKey()
161 const Symbol* lookup(SymbolTable* writableSymbolTable, const SymbolKey& key);
168 SkTHashMap<SymbolKey, const Symbol*, SymbolKey::Hash> fSymbols;
DSkSLSymbolTable.cpp32 const Symbol* SymbolTable::lookup(SymbolTable* writableSymbolTable, const SymbolKey& key) { in lookup()