Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bcdc4fe authored by John Reck's avatar John Reck
Browse files

Enable context dropping on stopped only

Fixes: 245565051
Test: open calculator, hit home, wait 10s, dumpsys & verify no GL
context

Change-Id: I34566a566829c00c983ed6da78f71d8a8238c337
parent bfb5f457
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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();