diff options
author | Steven Laver <lavers@google.com> | 2019-10-16 04:24:04 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-10-16 04:24:04 +0000 |
commit | 2b3d780d9dcb7acee05d0c701cb2034f51cc37a7 (patch) | |
tree | fe3a6d65d6a9c03cff46b51ef858c763cb7b91cf /libs/hwui/renderthread/CacheManager.cpp | |
parent | 2e1a2436016fd9b976f861f7950746cd0a688fa1 (diff) | |
parent | b60d5e4eb4977afc7339ab5064d2977ebe385b03 (diff) |
Merge changes from topic "RP1A.190923.001" into r-keystone-qcom-dev
* changes:
Removes now unused processCdmaCTWdpHeader.
Adds missing import for com.android.systemui.R
Remove calls to KeyguardUpdateMonitor.getInstance().
Adds back value-add that was lost when RingtonePickerActivity.java was moved.
Overload getWifiIconResource().
Revert "AudioService: simplify/document locking"
Merge RP1A.190923.001
Diffstat (limited to 'libs/hwui/renderthread/CacheManager.cpp')
-rw-r--r-- | libs/hwui/renderthread/CacheManager.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/hwui/renderthread/CacheManager.cpp b/libs/hwui/renderthread/CacheManager.cpp index 5469a6810c87..fc268138e071 100644 --- a/libs/hwui/renderthread/CacheManager.cpp +++ b/libs/hwui/renderthread/CacheManager.cpp @@ -69,8 +69,7 @@ void CacheManager::reset(sk_sp<GrContext> context) { if (context) { mGrContext = std::move(context); - mGrContext->getResourceCacheLimits(&mMaxResources, nullptr); - mGrContext->setResourceCacheLimits(mMaxResources, mMaxResourceBytes); + mGrContext->setResourceCacheLimit(mMaxResourceBytes); } } @@ -119,8 +118,8 @@ void CacheManager::trimMemory(TrimMemoryMode mode) { // limits between the background and max amounts. This causes the unlocked resources // that have persistent data to be purged in LRU order. mGrContext->purgeUnlockedResources(true); - mGrContext->setResourceCacheLimits(mMaxResources, mBackgroundResourceBytes); - mGrContext->setResourceCacheLimits(mMaxResources, mMaxResourceBytes); + mGrContext->setResourceCacheLimit(mBackgroundResourceBytes); + mGrContext->setResourceCacheLimit(mMaxResourceBytes); SkGraphics::SetFontCacheLimit(mBackgroundCpuFontCacheBytes); SkGraphics::SetFontCacheLimit(mMaxCpuFontCacheBytes); break; |