summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-04-10 16:05:50 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-04-10 16:05:50 +0000
commit72aaa88f2e060501a7f26f98c6e3fd2ee1b0dd64 (patch)
tree53097f962aacf21e7ff80e5062cd507bf64bb96b /libs
parent44220d7d9a0b63f645ab4a3f18d3358a18b9c3df (diff)
parent6b6645c8951e95b2802c489ab2d87f004c610ffc (diff)
downloadframeworks_base-72aaa88f2e060501a7f26f98c6e3fd2ee1b0dd64.zip
frameworks_base-72aaa88f2e060501a7f26f98c6e3fd2ee1b0dd64.tar.gz
frameworks_base-72aaa88f2e060501a7f26f98c6e3fd2ee1b0dd64.tar.bz2
am 6b6645c8: am 1a595833: am d56e087b: Merge "Fixing memory leak in RenderBufferCache"
* commit '6b6645c8951e95b2802c489ab2d87f004c610ffc': Fixing memory leak in RenderBufferCache
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/RenderBufferCache.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/RenderBufferCache.cpp b/libs/hwui/RenderBufferCache.cpp
index 0380c51..d0812c9 100644
--- a/libs/hwui/RenderBufferCache.cpp
+++ b/libs/hwui/RenderBufferCache.cpp
@@ -158,6 +158,11 @@ bool RenderBufferCache::put(RenderBuffer* buffer) {
buffer->getWidth(), buffer->getHeight());
return true;
+ } else {
+ RENDER_BUFFER_LOGD("Deleted %s render buffer (%dx%d) Size=%d, MaxSize=%d",
+ RenderBuffer::formatName(buffer->getFormat()),
+ buffer->getWidth(), buffer->getHeight(), size, mMaxSize);
+ delete buffer;
}
return false;
}