Lines Matching refs:Key
20 * Cache object for bitmaps (with possible scale in X Y as part of the key).
31 struct Key {
32 /** Key subclasses must call this after their own fields and data are initialized.
34 * @param nameSpace must be unique per Key subclass.
40 /** Returns the size of this key. */
51 bool operator==(const Key& other) const {
75 typedef SkResourceCache::Key Key;
82 virtual const Key& getKey() const = 0;
90 static uint32_t Hash(const Key& key) { return key.hash(); }
91 static const Key& GetKey(const Rec& rec) { return rec.getKey(); }
111 * specified Key, and will pass in the corresponding Rec, along with a caller-specified
133 * Returns true if the visitor was called on a matching Key, and the visitor returned true.
135 * Find() will search the cache for the specified Key. If no match is found, return false and
141 static bool Find(const Key& key, FindVisitor, void* context);
206 * Returns true if the visitor was called on a matching Key, and the visitor returned true.
208 * find() will search the cache for the specified Key. If no match is found, return false and
214 bool find(const Key&, FindVisitor, void* context);