Allways dump the list of allocated buffers when an allocation fails.

Hopefully this will help us understand cases of failures such as [2148405]
This commit is contained in:
Mathias Agopian
2009-09-27 18:44:09 -07:00
parent 954e98e023
commit c4646e654a

View File

@@ -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;