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

Commit 042f7d64 authored by Kenny Root's avatar Kenny Root
Browse files

Fix debugging for hwui caches

Debugging code attempted to delete a stack item.

Also, the flag fields weren't exactly clear, so rewrite it so it's
clear that kDebugMoreCaches is a combined flag.

Change-Id: If42b7f0f754919343301da5656aee5943cc9bd4a
parent 8c55a9a5
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -73,7 +73,6 @@ void Caches::dumpMemoryUsage() {
    String8 stringLog;
    dumpMemoryUsage(stringLog);
    LOGD("%s", stringLog.string());
    delete stringLog;
}

void Caches::dumpMemoryUsage(String8 &log) {
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ enum DebugLevel {
    kDebugDisabled = 0,
    kDebugMemory = 1,
    kDebugCaches = 2,
    kDebugMoreCaches = 3
    kDebugMoreCaches = kDebugMemory | kDebugCaches
};

// These properties are defined in mega-bytes