summaryrefslogtreecommitdiff
path: root/libs/hwui/Caches.cpp
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2014-11-03 10:32:24 -0800
committer John Reck <jreck@google.com> 2014-11-03 10:32:24 -0800
commit88f5fc7c5a9fb1e677c508165f732cd76f5eef3a (patch)
tree4179fecc0998d80bd27892ee1ee7ae2a67ab31a3 /libs/hwui/Caches.cpp
parentdde49a4fe8ae9a4736d171efbadb067e7d4cc81d (diff)
Fix counting
Change-Id: I9a3568908a7223d69430c1765fb5a4db96d7ac9c
Diffstat (limited to 'libs/hwui/Caches.cpp')
-rw-r--r--libs/hwui/Caches.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/Caches.cpp b/libs/hwui/Caches.cpp
index ad50894ee073..952f7394fb5c 100644
--- a/libs/hwui/Caches.cpp
+++ b/libs/hwui/Caches.cpp
@@ -280,7 +280,7 @@ void Caches::dumpMemoryUsage(String8 &log) {
layer->getWidth(), layer->getHeight(),
layer->isTextureLayer(), layer->getTexture(),
layer->getFbo(), layer->getStrongCount());
- memused = layer->getWidth() * layer->getHeight() * 4;
+ memused += layer->getWidth() * layer->getHeight() * 4;
}
log.appendFormat(" Layers total %8d (numLayers = %zu)\n",
memused, mRenderState->mActiveLayers.size());