diff options
author | Derek Sollenberger <djsollen@google.com> | 2018-04-12 13:42:19 -0400 |
---|---|---|
committer | Derek Sollenberger <djsollen@google.com> | 2018-04-12 13:42:19 -0400 |
commit | 92a9eb9713f7bde9897de648604c74e0df25cd6e (patch) | |
tree | 1d1e7f2fa75102b273333386c29d648ed80cfad6 /libs/hwui/renderthread/CacheManager.cpp | |
parent | 52ae06af4d170b5ccd1453f7584d00b1cf288689 (diff) |
Unpin bitmaps but don't purge all scratch resources.
This is a partial revert of b1f27aae89a9da9fbf3cb15a47f1a401db5a7974.
Test: hwui_unit_tests
Bug: 77654081
Change-Id: I5a58c156a280edfe3e9973ac3a8a30c97a2cff8b
Diffstat (limited to 'libs/hwui/renderthread/CacheManager.cpp')
-rw-r--r-- | libs/hwui/renderthread/CacheManager.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libs/hwui/renderthread/CacheManager.cpp b/libs/hwui/renderthread/CacheManager.cpp index 3ca92953e5f7..f510a2055309 100644 --- a/libs/hwui/renderthread/CacheManager.cpp +++ b/libs/hwui/renderthread/CacheManager.cpp @@ -166,10 +166,7 @@ void CacheManager::trimStaleResources() { return; } mGrContext->flush(); - // Here we purge all the unlocked scratch resources (leaving those resources w/ persistent data) - // and then purge those w/ persistent data based on age. - mGrContext->purgeUnlockedResources(true); - mGrContext->purgeResourcesNotUsedInMs(std::chrono::seconds(10)); + mGrContext->purgeResourcesNotUsedInMs(std::chrono::seconds(30)); } sp<skiapipeline::VectorDrawableAtlas> CacheManager::acquireVectorDrawableAtlas() { |