diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2021-06-16 01:07:40 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2021-06-16 01:07:40 +0000 |
commit | 233ce9ef453bc7b47f7ac5d0eb1d5fda0ce845ab (patch) | |
tree | 2c414c5d9ce4ab1099cd73259d912432ac526bdc /libs/hwui/renderthread/CacheManager.cpp | |
parent | 379d80ba17a87a4302c6a177f845159880e1536d (diff) | |
parent | f34c9ede734be8bb831304bfd3a9ba22461cec6d (diff) |
Snap for 7460608 from f34c9ede734be8bb831304bfd3a9ba22461cec6d to sc-release
Change-Id: Icefa7a959e8b47c6b77e621c924eba895eab3c47
Diffstat (limited to 'libs/hwui/renderthread/CacheManager.cpp')
-rw-r--r-- | libs/hwui/renderthread/CacheManager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/CacheManager.cpp b/libs/hwui/renderthread/CacheManager.cpp index 46e806081c0c..ded2b06fb3cf 100644 --- a/libs/hwui/renderthread/CacheManager.cpp +++ b/libs/hwui/renderthread/CacheManager.cpp @@ -210,6 +210,14 @@ void CacheManager::onFrameCompleted() { } } +void CacheManager::performDeferredCleanup(nsecs_t cleanupOlderThanMillis) { + if (mGrContext) { + mGrContext->performDeferredCleanup( + std::chrono::milliseconds(cleanupOlderThanMillis), + /* scratchResourcesOnly */true); + } +} + } /* namespace renderthread */ } /* namespace uirenderer */ } /* namespace android */ |