summaryrefslogtreecommitdiffstats
path: root/libs/hwui
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2011-07-13 09:49:43 -0700
committerKenny Root <kroot@google.com>2011-07-13 09:51:00 -0700
commit042f7d64b5ccd7b5b73e7e9814a84576f04fb7d4 (patch)
tree66221ac5ac0764e2d7832a13385b52b00bd7cc38 /libs/hwui
parent8c55a9a57e4f13ec420c3de7b3abfdcf454f6633 (diff)
downloadframeworks_base-042f7d64b5ccd7b5b73e7e9814a84576f04fb7d4.zip
frameworks_base-042f7d64b5ccd7b5b73e7e9814a84576f04fb7d4.tar.gz
frameworks_base-042f7d64b5ccd7b5b73e7e9814a84576f04fb7d4.tar.bz2
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
Diffstat (limited to 'libs/hwui')
-rw-r--r--libs/hwui/Caches.cpp1
-rw-r--r--libs/hwui/Properties.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/libs/hwui/Caches.cpp b/libs/hwui/Caches.cpp
index 563d7e4..e232ddd 100644
--- a/libs/hwui/Caches.cpp
+++ b/libs/hwui/Caches.cpp
@@ -73,7 +73,6 @@ void Caches::dumpMemoryUsage() {
String8 stringLog;
dumpMemoryUsage(stringLog);
LOGD("%s", stringLog.string());
- delete stringLog;
}
void Caches::dumpMemoryUsage(String8 &log) {
diff --git a/libs/hwui/Properties.h b/libs/hwui/Properties.h
index 7c10518..47049e2 100644
--- a/libs/hwui/Properties.h
+++ b/libs/hwui/Properties.h
@@ -43,7 +43,7 @@ enum DebugLevel {
kDebugDisabled = 0,
kDebugMemory = 1,
kDebugCaches = 2,
- kDebugMoreCaches = 3
+ kDebugMoreCaches = kDebugMemory | kDebugCaches
};
// These properties are defined in mega-bytes