diff options
author | 2023-11-28 16:33:47 +0800 | |
---|---|---|
committer | 2023-11-28 16:43:19 +0800 | |
commit | 6ccda761cadaa498372c05c33e186e9a48f514fb (patch) | |
tree | f886810201f01275ef0d21b87b2c6c16643e87fe /libs | |
parent | ad73c57d691ad2cfd48b201db6cf8b053d2207ba (diff) |
Fix gpu resource not cleaned up
Gpu resource is not purged as expected in new implementation when
app stays in foreground.
Test: manual, adb shell dumpsys gfxinfo
Change-Id: I15deb71693e726661c8bae70c7ae30cff2dcfa6b
Diffstat (limited to 'libs')
-rw-r--r-- | libs/hwui/renderthread/CacheManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/CacheManager.cpp b/libs/hwui/renderthread/CacheManager.cpp index babce88b8e1e..f69555600376 100644 --- a/libs/hwui/renderthread/CacheManager.cpp +++ b/libs/hwui/renderthread/CacheManager.cpp @@ -277,7 +277,7 @@ void CacheManager::onThreadIdle() { const nsecs_t now = systemTime(CLOCK_MONOTONIC); // Rate limiting - if ((now - mLastDeferredCleanup) < 25_ms) { + if ((now - mLastDeferredCleanup) > 25_ms) { mLastDeferredCleanup = now; const nsecs_t frameCompleteNanos = mFrameCompletions[0]; const nsecs_t frameDiffNanos = now - frameCompleteNanos; |