Home | History | Annotate | Download | only in gpu

Lines Matching refs:resource

33         across resource types. */
42 /** Creates a key for resource */
121 GrCacheable* resource() const { return fResource; }
133 * Update the cached size for this entry and inform the resource cache that
142 GrCacheable* resource);
163 * resource. Multiple resources can map to same GrResourceKey.
182 * Return the current resource cache limits.
192 * Specify the resource cache limits. If the current cache exceeds either
197 * @param maxBytes The maximum number of bytes of resource memory that
231 // For a found or added resource to be completely exclusive to the caller
234 kNoOtherOwners_OwnershipFlag = 0x1, // found/added resource has no other owners
235 kHide_OwnershipFlag = 0x2 // found/added resource is hidden from future 'find's
241 * If ownershipFlags includes kNoOtherOwners and a resource is returned
242 * then that resource has no other refs to it.
243 * If ownershipFlags includes kHide and a resource is returned then that
244 * resource will not be returned from future 'find' calls until it is
246 * For a resource to be completely exclusive to a caller both kNoOtherOwners
253 * Add the new resource to the cache (by creating a new cache entry based
254 * on the provided key and resource).
256 * Ownership of the resource is transferred to the resource cache,
260 * return 'resource' until it is 'freed' (and recycled) or makeNonExclusive
264 GrCacheable* resource,
288 * Notify the cache that the size of a resource has changed.
294 * Remove a resource from the cache and delete it!
299 * Removes every resource in the cache that isn't locked.
304 * Allow cache to purge unused resources to obey resource limitations
310 * extraCount and extraBytes are added to the current resource allocation
373 // Listen for messages that a resource has been invalidated and purge cached junk proactively.