summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2023-12-15 16:48:42 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-12-15 16:48:42 +0000
commitdab518a039808a249841e6190134b395b3d1bd8f (patch)
treef90774e6c95a1d5d71391b2fbc103c63a3ffa40c /libs
parent1335a832937ff38e5fef545d3ba66482f345e516 (diff)
parent6ccda761cadaa498372c05c33e186e9a48f514fb (diff)
Merge "Fix gpu resource not cleaned up" into main
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/renderthread/CacheManager.cpp2
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;