OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
954e98e
)
Allways dump the list of allocated buffers when an allocation fails.
author
Mathias Agopian
<mathias@google.com>
Mon, 28 Sep 2009 01:44:09 +0000
(18:44 -0700)
committer
Mathias Agopian
<mathias@google.com>
Mon, 28 Sep 2009 01:44:09 +0000
(18:44 -0700)
Hopefully this will help us understand cases of failures such as [
2148405
]
libs/surfaceflinger/BufferAllocator.cpp
patch
|
blob
|
history
diff --git
a/libs/surfaceflinger/BufferAllocator.cpp
b/libs/surfaceflinger/BufferAllocator.cpp
index
19867a5
..
caf9bec
100644
(file)
--- 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;