Lines Matching full:resources
51 * Resources may have optionally have two types of keys:
52 * 1) A scratch key. This is for resources whose allocations are cached but not their contents.
53 * Multiple resources can share the same scratch key. This is so a caller can have two
56 * should never change. Resources need not have a scratch key.
72 // Default maximum number of bytes of gpu memory of budgeted resources in the cache.
102 * Returns the number of resources.
109 * Returns the number of resources that count against the budget.
114 * Returns the number of bytes consumed by resources.
126 * Returns the number of bytes held by unlocked resources which are available for purging.
131 * Returns the number of bytes consumed by budgeted resources.
136 * Returns the number of bytes consumed by cached resources.
141 * Abandons the backend API resources owned by all GrGpuResource objects and removes them from
147 * Releases the backend API resources owned by all GrGpuResource objects and removes them from
193 /** Purges resources to become under budget and processes resources with invalidated unique
198 // Purge unlocked resources. If 'scratchResourcesOnly' is true the purgeable resources
199 // containing persistent data are spared. If it is false then all purgeable resources will
211 // Purge unlocked resources not used since the passed point in time. If 'scratchResourcesOnly'
212 // is true the purgeable resources containing persistent data are spared. If it is false then
213 // all purgeable resources older than 'purgeTime' will be deleted.
219 /** If it's possible to purge enough resources to get the provided amount of budget
231 * Purge unlocked resources from the cache until the the provided byte count has been reached
232 * or we have purged all unlocked resources. The default policy is to purge in LRU order, but
233 * can be overridden to prefer purging scratch resources (in LRU order) prior to purging other
237 * @param preferScratchResources If true scratch resources will be purged prior to other
242 /** Returns true if the cache would like a flush to occur in order to make more resources
299 // Enumerates all cached resources and dumps their details to traceMemoryDump.
308 std::set<GrGpuResourceTag> getAllGrGpuResourceTags() const; // Get the tag of all GPU resources
511 // purgeable resources by this value, and thus is used to purge resources in LRU order.
516 // This map holds all resources that can be used as scratch resources.
518 // This holds all resources that have unique keys.
532 // our current stats for all resources
540 // our current stats for resources that count against the budget
613 * Notifications that should be sent to the cache when the ref/io cnt status of resources