diff options
| author | Android (Google) Code Review <android-gerrit@google.com> | 2009-09-27 21:47:29 -0400 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-09-27 21:47:29 -0400 |
| commit | 960972d465d6890d51c73fc08dda7fb17825ce7f (patch) | |
| tree | f7ce3c58e036ede073dc4c8f82bf06268cbd7ba4 /libs | |
| parent | 41c64ba73cf4dbc14beeaaa618afdd908da8b0cb (diff) | |
| parent | c4646e654a18543be4e2f7d98f63bc4e603128e1 (diff) | |
| download | frameworks_base-960972d465d6890d51c73fc08dda7fb17825ce7f.zip frameworks_base-960972d465d6890d51c73fc08dda7fb17825ce7f.tar.gz frameworks_base-960972d465d6890d51c73fc08dda7fb17825ce7f.tar.bz2 | |
Merge change 27375 into eclair
* changes:
Allways dump the list of allocated buffers when an allocation fails.
Diffstat (limited to 'libs')
| -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; |
