Lines Matching defs:key
45 * Finds a resource in the cache, based on the specified key. Prior to calling this, the caller
46 * must be sure that if a resource of exists in the cache with the given unique key then it is
51 findByUniqueKey(const GrUniqueKey& key) {
52 return sk_sp<T>(static_cast<T*>(this->findResourceByUniqueKey(key).release()));
187 * Either finds and refs a buffer with the given unique key, or creates a new new, fills its
188 * contents with the InitializeBufferDataFn() callback, and assigns it the unique key.
192 * @param key Key to be assigned to the buffer.
199 const GrUniqueKey& key, InitializeBufferFn);
207 * @param key Key to be assigned to the buffer.
212 const void* staticData, const GrUniqueKey& key);
223 * @param key Key to be assigned to the index buffer.
231 const GrUniqueKey& key) {
232 if (auto buffer = this->findByUniqueKey<const GrGpuBuffer>(key)) {
235 return this->createPatternedIndexBuffer(pattern, patternSize, reps, vertCount, &key);
315 * Assigns a unique key to a resource. If the key is associated with another resource that
405 const GrUniqueKey* key);