diff options
Diffstat (limited to 'include/gpu/GrContext.h')
-rw-r--r-- | include/gpu/GrContext.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index 959a0fa5b6..ea4f4228fd 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -160,6 +160,12 @@ public: */ void purgeAllUnlockedResources(); + /** + * Purge GPU resources that haven't been used in the past 'ms' milliseconds, regardless of + * whether the context is currently under budget. + */ + void purgeResourcesNotUsedInMs(std::chrono::milliseconds ms); + /** Access the context capabilities */ const GrCaps* caps() const { return fCaps; } |