Lines Matching full:resources

43  * Resources may have optionally have two types of keys:
44 * 1) A scratch key. This is for resources whose allocations are cached but not their contents.
45 * Multiple resources can share the same scratch key. This is so a caller can have two
48 * should never change. Resources need not have a scratch key.
62 // Default maximum number of budgeted resources in the cache.
64 // Default maximum number of bytes of gpu memory of budgeted resources in the cache.
74 /** Sets the cache limits in terms of number of resources and max gpu memory byte size. */
78 * Returns the number of resources.
85 * Returns the number of resources that count against the budget.
90 * Returns the number of bytes consumed by resources.
100 * Returns the number of bytes consumed by budgeted resources.
105 * Returns the cached resources count budget.
110 * Returns the number of bytes consumed by cached resources.
115 * Abandons the backend API resources owned by all GrGpuResource objects and removes them from
121 * Releases the backend API resources owned by all GrGpuResource objects and removes them from
128 /** Preferentially returns scratch resources with no pending IO. */
130 /** Will not return any resources that match but have pending IO. */
165 /** Purges resources to become under budget and processes resources with invalidated unique
169 /** Purges all resources that don't have external owners. */
172 // Purge unlocked resources. If 'scratchResourcesOnly' is true the purgeable resources
173 // containing persistent data are spared. If it is false then all purgeable resources will
177 /** Purge all resources not used since the passed in time. */
183 * Purge unlocked resources from the cache until the the provided byte count has been reached
184 * or we have purged all unlocked resources. The default policy is to purge in LRU order, but
185 * can be overridden to prefer purging scratch resources (in LRU order) prior to purging other
189 * @param preferScratchResources If true scratch resources will be purged prior to other
194 /** Returns true if the cache would like a flush to occur in order to make more resources
252 // Enumerates all cached resources and dumps their details to traceMemoryDump.
344 // purgeable resources by this value, and thus is used to purge resources in LRU order.
349 // This map holds all resources that can be used as scratch resources.
351 // This holds all resources that have unique keys.
365 // our current stats for all resources
369 // our current stats for resources that count against the budget
407 * Notifications that should be sent to the cache when the ref/io cnt status of resources