summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2023-01-10 19:14:08 -0500
committer John Reck <jreck@google.com> 2023-01-10 19:14:08 -0500
commit1bcdc4fef66e7474669a69ee5e70d5dca4a50ffb (patch)
treea85b81d2b4167be42b2f181bed63258c59ba920d
parentbfb5f457af7a1ccd91f7ccb1ed22d377dc206718 (diff)
Enable context dropping on stopped only
Fixes: 245565051 Test: open calculator, hit home, wait 10s, dumpsys & verify no GL context Change-Id: I34566a566829c00c983ed6da78f71d8a8238c337
-rw-r--r--libs/hwui/MemoryPolicy.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/MemoryPolicy.h b/libs/hwui/MemoryPolicy.h
index 41ced8cebf83..2f0f7f506447 100644
--- a/libs/hwui/MemoryPolicy.h
+++ b/libs/hwui/MemoryPolicy.h
@@ -53,8 +53,8 @@ struct MemoryPolicy {
// Whether or not to only purge scratch resources when triggering UI Hidden or background
// collection
bool purgeScratchOnly = true;
- // EXPERIMENTAL: Whether or not to trigger releasing GPU context when all contexts are stopped
- bool releaseContextOnStoppedOnly = false;
+ // Whether or not to trigger releasing GPU context when all contexts are stopped
+ bool releaseContextOnStoppedOnly = true;
};
const MemoryPolicy& loadMemoryPolicy();