Lines Matching defs:Key
20 * Cache object for bitmaps (with possible scale in X Y as part of the key).
31 struct Key {
36 // nameSpace must be unique per Key subclass.
47 bool operator==(const Key& other) const {
71 typedef SkResourceCache::Key Key;
78 virtual const Key& getKey() const = 0;
82 static uint32_t Hash(const Key& key) { return key.hash(); }
83 static const Key& GetKey(const Rec& rec) { return rec.getKey(); }
103 * specified Key, and will pass in the corresponding Rec, along with a caller-specified
125 * Returns true if the visitor was called on a matching Key, and the visitor returned true.
127 * Find() will search the cache for the specified Key. If no match is found, return false and
133 static bool Find(const Key& key, FindVisitor, void* context);
187 * Returns true if the visitor was called on a matching Key, and the visitor returned true.
189 * find() will search the cache for the specified Key. If no match is found, return false and
195 bool find(const Key&, FindVisitor, void* context);