Lines Matching full:resources

42  * Resources may have optionally have two types of keys:
43 * 1) A scratch key. This is for resources whose allocations are cached but not their contents.
44 * Multiple resources can share the same scratch key. This is so a caller can have two
47 * should never change. Resources need not have a scratch key.
61 // Default maximum number of budgeted resources in the cache.
63 // Default maximum number of bytes of gpu memory of budgeted resources in the cache.
73 /** Sets the cache limits in terms of number of resources and max gpu memory byte size. */
77 * Returns the number of resources.
84 * Returns the number of resources that count against the budget.
89 * Returns the number of bytes consumed by resources.
99 * Returns the number of bytes consumed by budgeted resources.
104 * Returns the cached resources count budget.
109 * Returns the number of bytes consumed by cached resources.
114 * Abandons the backend API resources owned by all GrGpuResource objects and removes them from
120 * Releases the backend API resources owned by all GrGpuResource objects and removes them from
127 /** Preferentially returns scratch resources with no pending IO. */
129 /** Will not return any resources that match but have pending IO. */
164 /** Purges resources to become under budget and processes resources with invalidated unique
168 /** Purges all resources that don't have external owners. */
171 // Purge unlocked resources. If 'scratchResourcesOnly' is true the purgeable resources
172 // containing persistent data are spared. If it is false then all purgeable resources will
176 /** Purge all resources not used since the passed in time. */
182 * Purge unlocked resources from the cache until the the provided byte count has been reached
183 * or we have purged all unlocked resources. The default policy is to purge in LRU order, but
184 * can be overridden to prefer purging scratch resources (in LRU order) prior to purging other
188 * @param preferScratchResources If true scratch resources will be purged prior to other
193 /** Returns true if the cache would like a flush to occur in order to make more resources
248 // Enumerates all cached resources and dumps their details to traceMemoryDump.
321 // purgeable resources by this value, and thus is used to purge resources in LRU order.
326 // This map holds all resources that can be used as scratch resources.
328 // This holds all resources that have unique keys.
342 // our current stats for all resources
346 // our current stats for resources that count against the budget
385 * Notifications that should be sent to the cache when the ref/io cnt status of resources