diff options
author | Mathias Agopian <mathias@google.com> | 2009-09-27 18:44:09 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-09-27 18:44:09 -0700 |
commit | c4646e654a18543be4e2f7d98f63bc4e603128e1 (patch) | |
tree | 334ee9d38c238da62365b10ef6e8a9f83f4a8244 /libs/surfaceflinger/BufferAllocator.cpp | |
parent | 954e98e023568b354aeec0a54668155ad9083398 (diff) | |
download | frameworks_base-c4646e654a18543be4e2f7d98f63bc4e603128e1.zip frameworks_base-c4646e654a18543be4e2f7d98f63bc4e603128e1.tar.gz frameworks_base-c4646e654a18543be4e2f7d98f63bc4e603128e1.tar.bz2 |
Allways dump the list of allocated buffers when an allocation fails.
Hopefully this will help us understand cases of failures such as [2148405]
Diffstat (limited to 'libs/surfaceflinger/BufferAllocator.cpp')
-rw-r--r-- | libs/surfaceflinger/BufferAllocator.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/surfaceflinger/BufferAllocator.cpp b/libs/surfaceflinger/BufferAllocator.cpp index 19867a5..caf9bec 100644 --- a/libs/surfaceflinger/BufferAllocator.cpp +++ b/libs/surfaceflinger/BufferAllocator.cpp @@ -102,6 +102,10 @@ status_t BufferAllocator::alloc(uint32_t w, uint32_t h, PixelFormat format, rec.vaddr = 0; rec.size = h * stride[0] * bytesPerPixel(format); list.add(*handle, rec); + } else { + String8 s; + dump(s); + LOGD("%s", s.string()); } return err; |